Last active
December 4, 2019 00:09
-
-
Save rvennam/61f0b2afcf10cec3e05a917b478132a7 to your computer and use it in GitHub Desktop.
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 "====== Cleaning" | |
kubectl -n istio-operator get IstioControlPlane example-istiocontrolplane -o=json | jq '.metadata.finalizers = null' | kubectl delete -f - | |
kubectl -n istio-operator get IstioControlPlane managed-istiocontrolplane -o=json | jq '.metadata.finalizers = null' | kubectl delete -f - | |
sleep 60 | |
kubectl delete ns istio-operator --grace-period=0 --force | |
kubectl delete ns istio-system --grace-period=0 --force | |
sleep 30 | |
echo "====== Installing Operator" | |
kubectl apply -f https://istio.io/operator.yaml | |
sleep 60 | |
echo "====== Applying ICP" | |
kubectl apply -f - <<EOF | |
apiVersion: install.istio.io/v1alpha2 | |
kind: IstioControlPlane | |
metadata: | |
namespace: istio-operator | |
name: example-istiocontrolplane | |
spec: | |
profile: default | |
EOF | |
sleep 240 | |
echo "====== Telemetry Check: (should see 200)" | |
kubectl run -n istio-system -it --rm --restart=Never test --image=tutum/curl -- sh -c 'curl -I http://istio-telemetry:42422/metrics' | |
echo "====== Deleting ICP" | |
kubectl delete icp -n istio-operator example-istiocontrolplane | |
sleep 180 | |
echo "====== Applying ICP again" | |
kubectl apply -f - <<EOF | |
apiVersion: install.istio.io/v1alpha2 | |
kind: IstioControlPlane | |
metadata: | |
namespace: istio-operator | |
name: example-istiocontrolplane | |
spec: | |
profile: default | |
EOF | |
sleep 240 | |
echo "====== Telemetry Check: (should see 200)" | |
kubectl run -n istio-system -it --rm --restart=Never test --image=tutum/curl -- sh -c 'curl -I http://istio-telemetry:42422/metrics' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment