Skip to content

Instantly share code, notes, and snippets.

@imyoungyang
Last active February 22, 2018 07:09
Show Gist options
  • Save imyoungyang/d88520881d021c54df58788b2bc1dc1f to your computer and use it in GitHub Desktop.
Save imyoungyang/d88520881d021c54df58788b2bc1dc1f to your computer and use it in GitHub Desktop.
kubectl port-forward
*for the kubernetes dashboard*
kubectl proxy --port=8080 --address 0.0.0.0 --accept-hosts '.*'
*port-forward*
kubectl port-forward $(kubectl get po -l prometheus=prometheus -n monitoring -o jsonpath={.items[0].metadata.name}) 8080:9090 -n monitoring
Forwarding from 127.0.0.1:8080 -> 9090
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment