Menu
Coddy logo textTech

Scale And Update

Part of the Introduction to Kubernetes section of Coddy's Terminal journey. Lesson 41 of 45.

challenge icon

Challenge

Medium

Traffic is growing and a new version is ready. Both manifests are in your directory. Run these steps one after the other:

  1. Apply deployment.yaml and service.yaml
  2. Scale the shop Deployment to 4 replicas
  3. Update its shop container to the nginx:1.27 image
  4. Check the rollout status
  5. Show the endpoints of the shop Service: 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 shop

All lessons in Introduction to Kubernetes

Practice on your own: Terminal playground