Skip to content

Instantly share code, notes, and snippets.

@lordofthejars
Created April 1, 2019 18:09
Show Gist options
  • Save lordofthejars/4d17eaed11d8ccd60f89631b50566c52 to your computer and use it in GitHub Desktop.
Save lordofthejars/4d17eaed11d8ccd60f89631b50566c52 to your computer and use it in GitHub Desktop.
[istioctl create -f ../../../istiofiles/destination-rule-recommendation-v4-v5-v6-v7.yml -n tutorial]
[istioctl create -f ../../../istiofiles/virtual-service-recommendation-v4.yml -n tutorial
]
[postgres]
[v4]
kubectl exec -ti postgres-6cc7c8bbd5-p2lbq -c postgres /bin/bash
psql -U admin recommendation
curl customer-tutorial.$(minishift ip).nip.io
curl -H "Content-type: text/plain" -X POST --data "Avengers: Infinity War" customer-tutorial.$(minishift ip).nip.io
kubectl apply -f <(istioctl kube-inject -f ../../kubernetes/Deployment-v5.yml) -n tutorial
istioctl replace -f ../../../istiofiles/virtual-service-recommendation-v5.yml -n tutorial
curl -H "Content-type: text/plain" -X POST --data "Frozen" customer-tutorial.$(minishift ip).nip.io
istioctl replace -f istiofiles/virtual-service-recommendation-v4.yml -n tutorial
back to v5
kubectl delete all -l app=recommendation,version=v4
kubectl apply -f <(istioctl kube-inject -f ../../kubernetes/Deployment-v6.yml) -n tutorial
curl
istioctl replace -f istiofiles/virtual-service-recommendation-v6.yml -n tutorial
curl -H "Content-type: text/plain" -X POST --data "The Lord Of The Rings: The Fellowship of the Ring" customer-tutorial.$(minishift ip).nip.io
kubectl delete all -l app=recommendation,version=v5
kubectl apply -f <(istioctl kube-inject -f ../../kubernetes/Deployment-v7.yml) -n tutorial
istioctl replace -f istiofiles/virtual-service-recommendation-v7.yml -n tutorial
curl -H "Content-type: text/plain" -X POST --data "Howl's Moving Castle" customer-tutorial.$(minishift ip).nip.io
back to 6
curl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment