Running in Production
A Docker image is not enough. You need to tell Kubernetes how to run it.
- Deployment: Number of replicas, image name.
- Service: How to route traffic to the pods.
- ConfigMap/Secret: Passing environment variables.
We will write a standard deployment.yaml for our microservice.