Scale And Update
Part of the Introduction to Kubernetes section of Coddy's Terminal journey. Lesson 41 of 45.
Challenge
MediumTraffic is growing and a new version is ready. Both manifests are in your directory. Run these steps one after the other:
- Apply
deployment.yamlandservice.yaml - Scale the
shopDeployment to4replicas - Update its
shopcontainer to thenginx:1.27image - Check the rollout status
- Show the endpoints of the
shopService: kubectl lists three addresses and counts the rest
Try it yourself
Terminal
kubectl apply -f deployment.yaml
kubectl apply -f service.yaml
kubectl get service shop
kubectl get endpoints shopAll lessons in Introduction to Kubernetes
4Deployments
Creating A DeploymentScalingDeployments From ManifestsUpdating ImagesRolling BackRecap - Deployment Manager10Web Shop Project
Project OverviewWrite The DeploymentPractice on your own: Terminal playground