Created
March 4, 2019 15:44
-
-
Save brk3/8fe94443d89dda1f85e7736f3ad34ab3 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
kubectl apply -f install/kubernetes/helm/istio/templates/crds.yaml | |
kubectl apply -f install/kubernetes/istio-demo.yaml | |
kubectl apply -f <(istioctl kube-inject -f samples/bookinfo/platform/kube/bookinfo.yaml) | |
kubectl apply -f samples/bookinfo/networking/bookinfo-gateway.yaml | |
sleep 10 | |
export INGRESS_PORT=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="http2")].nodePort}') | |
export SECURE_INGRESS_PORT=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="https")].nodePort}') | |
export INGRESS_HOST=$(kubectl get po -l istio=ingressgateway -n istio-system -o 'jsonpath={.items[0].status.hostIP}') | |
export GATEWAY_URL=$INGRESS_HOST:$INGRESS_PORT | |
kubectl apply -f samples/bookinfo/networking/virtual-service-all-v1.yaml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment