- Learn why container orchestration is important.
- Learn Kubernetes.
Here are the list of learning resources for this task.
Topic | Resource |
---|---|
What is Kubernetes | Link to this resource |
Learn Kubernetes | Link to this resource |
Kubernetes Tutorial | Link to this resource |
-
Create Kubernetes Replication Controller and Pods for Frontend and Backend. Check this out to learn what replication controllers are.
-
Make sure the pod count of Frontend and Backend is 1 if you're running this locally. If you're running this in production, pod count should atleast be 3.
-
Make sure backend connects to PostgreSQL properly.
- Create two services one for the frontend and one for the backend. Connect these services to Kubernetes RC's.
- Services will expose a public IP address that you can then attach to your Domain's DNS. (If you have a domain you already own, try this out. If you don't have a domain. You can buy one or completely ignore this point.)
- Set up Autoscaler for frontend and the backend.
- Test if the service is working properly.
- Push your kubernetes
yaml
orjson
files to your new GitHub repo.