Skip to content

Instantly share code, notes, and snippets.

@mhiro2
Created June 9, 2018 14:52
Show Gist options
  • Save mhiro2/1c3e18299652c50bedfa117ec4067e1d to your computer and use it in GitHub Desktop.
Save mhiro2/1c3e18299652c50bedfa117ec4067e1d to your computer and use it in GitHub Desktop.
$ export INGRESS_PORT=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="http")].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}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment