- Do a Blue/Green deployment with your nginx image which was done
- When accessing the blue pod , it should say hello blue ( the index.html ) page
- When accessing the green pod, it should say hello green
- Do a canary deployment
- version 1 is serving traffic then deploy version 2
- create a new "canary" ingress with traffic splitting enabled
- wait enought time to confirm that version 2 is stable and not throwing unexpected errors
- delete the canary ingress
- point the main application
In this repository we will work on k8s deployment strategy.
Follow the commands
- minikube start
- kubectl apply -f Blue-green/
- kubectl port-forward service/my-nginx 80:80
- browse localhost in local browser
- Stop port-forwarding
- change service.yml file
- Replace selector
run: my-nginx
torunblue: my-nginx-1
- Replace selector
- kubectl apply -f Blue-green/
- kubectl port-forward service/my-nginx 80:80
- browse localhost in local browser
Work still progress