You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run the script curl-test.sh again. Notice the requests now hit both the old and newer versions. However none of them fail.
controlplane $ ./curl-test.sh
Hello, Application Version: v2 ; Color: green OK
Hello, Application Version: v1 ; Color: green OK
Hello, Application Version: v2 ; Color: green OK
Up to how many PODs can be down for upgrade at a time
Consider the current strategy settings and number of PODs - 4
kubectl describe deployment frontend | grep -i "max unavailable"
RollingUpdateStrategy: 25% max unavailable, 25% max surge
Change the deployment strategy to 'Recreate'
Do not delete and re-create the deployment. Only update the strategy type for the existing deployment.
Upgrade the application by setting the image on the deployment to 'kodekloud/webapp-color:v3'
$ kubectl set image deployment frontend simple-webapp=kodekloud/webapp-color:v3
deployment.apps/frontend image updated
Run the script curl-test.sh again. Notice the failures. Wait for the new application to be ready. Notice that the requests now do not hit both the versions
controlplane $ ./curl-test.sh
Failed
Failed
Hello, Application Version: v3 ; Color: red OK
Hello, Application Version: v3 ; Color: red OK