Skip to content

Instantly share code, notes, and snippets.

@brk3
Created March 4, 2019 15:44
Show Gist options
  • Save brk3/8fe94443d89dda1f85e7736f3ad34ab3 to your computer and use it in GitHub Desktop.
Save brk3/8fe94443d89dda1f85e7736f3ad34ab3 to your computer and use it in GitHub Desktop.
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