Skip to content

Instantly share code, notes, and snippets.

@jpswade
Last active November 1, 2020 10:08
Show Gist options
  • Save jpswade/eed2033d04ca93af7745c418065efd2f to your computer and use it in GitHub Desktop.
Save jpswade/eed2033d04ca93af7745c418065efd2f to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -e
VERSION_INGRESS=0.13.0
[[ -d ~/Sites/ingress-nginx ]] || git clone [email protected]: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