Created
July 16, 2020 17:27
-
-
Save Justin2997/6397265aef58f24d08efe24e5190065f to your computer and use it in GitHub Desktop.
Update Istio from 1.4.x to 1.5.x
This file contains hidden or 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
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