-
-
Save nirbhabbarat/9779f4eeea5c4759152cfeef014955b3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
VERSION_INGRESS=0.13.0 | |
[[ -d ~/Sites/ingress-nginx ]] || git clone git@github.com:kubernetes/ingress-nginx.git ~/Sites/ingress-nginx | |
cd ~/Sites/ingress-nginx | |
sh test/e2e/wait-for-nginx.sh || echo "ERROR: This will attempt to deploy a newer version, which does not work..." | |
kubectl set image \ | |
deployments \ | |
--namespace ingress-nginx \ | |
--selector app=ingress-nginx \ | |
nginx-ingress-controller=quay.io/kubernetes-ingress-controller/nginx-ingress-controller:${VERSION_INGRESS} | |
cd `dirname $0` | |
kubectl rollout status deployments nginx-ingress-controller -n ingress-nginx | |
kubectl get pods --all-namespaces -l app=ingress-nginx | |
POD_NAMESPACE=ingress-nginx | |
POD_NAME=$(kubectl get pods -n ${POD_NAMESPACE} -l app=ingress-nginx -o jsonpath={.items[0].metadata.name}) | |
kubectl describe deploy nginx-ingress -n ${POD_NAMESPACE} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment