Skip to content

Instantly share code, notes, and snippets.

@Justin2997
Created July 16, 2020 17:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Justin2997/6397265aef58f24d08efe24e5190065f to your computer and use it in GitHub Desktop.
Save Justin2997/6397265aef58f24d08efe24e5190065f to your computer and use it in GitHub Desktop.
Update Istio from 1.4.x to 1.5.x
echo "==> ⚠️ You will update istio ! "
echo "==> istioctl version"
istioctl version --remote=false
echo "==> istioctl manifest versions"
istioctl manifest versions
echo "==> istioctl validate -f istio-1-5-config.yam"
istioctl validate -f istio-1-5-config.yaml
echo "==> istioctl manifest generate -f istio-1-5-config.yaml > generated_config.yaml"
istioctl manifest generate -f istio-1-5-config.yaml > generated_config.yaml
echo "==> istioctl manifest apply -f istio-1-5-config.yaml --dry-run"
istioctl manifest apply -f istio-1-5-config.yaml --dry-run
read -rsp $'==> ⚠️ Press any key to install...\n' -n1 key
echo "==> istioctl manifest apply -f istio-1-5-config.yaml "
istioctl manifest apply -f istio-1-5-config.yaml
echo "==> istioctl verify_install -f generated_config.yaml"
istioctl verify-install -f generated_config.yaml
echo "==> istioctl version"
istioctl version --remote=false
echo "==> istioctl proxy-status"
istioctl proxy-status
read -rsp $'==> ⚠️ Press any key to rollout restart...\n' -n1 key
echo "==> kubectl rollout restart deployment"
kubectl rollout restart deployment --namespace app
kubectl rollout restart deployment --namespace app-secret-manager
kubectl rollout restart deployment --namespace cert-manager
kubectl rollout restart deployment --namespace default
kubectl rollout restart deployment --namespace iam
kubectl rollout restart deployment --namespace nginx
kubectl rollout restart deployment --namespace oauth2-proxy
kubectl rollout restart deployment --namespace vault
echo "==> Give time for the restart (sleep 10) 😴 "
sleep 10
echo "==> kubectl get deployment --all-namespaces"
kubectl get deployment --all-namespaces
echo "==> istioctl version"
istioctl version
echo "==> 👏 istio update done 🎉"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment