Update NGINX Deployment
As a junior DevOps engineer, your task is to update the existing deployment to ensure minimal service disruption.
Prerequisites
Before you begin, ensure you have the following:
minikube start
kubectl apply -f ~/project/k8s-manifests/nginx-deployment.yaml
Check the deployment status:
kubectl get deployments
Tasks
- Update the
web-app deployment to use the image nginx:1.24.0-alpine.
- Verify that the update was successfully performed using rolling updates, ensuring zero downtime.
Requirements
- Use
kubectl commands to perform the update.
- Confirm that the deployment continues to function without downtime during the update.
- Use
kubectl rollout status to monitor the update progress.
- Check pod images to verify the updated version.
Hints
- Use
kubectl edit deployment web-app or kubectl set image to update the image.
- Monitor the rollout status using
kubectl rollout status.
- Validate the running pods and their container images using
kubectl get pods -o jsonpath.