Skip to content

Instantly share code, notes, and snippets.

@magickatt
Created April 2, 2020 18:46
Show Gist options
  • Save magickatt/f8c2c72681a250734d5c9a8c0604c30d to your computer and use it in GitHub Desktop.
Save magickatt/f8c2c72681a250734d5c9a8c0604c30d to your computer and use it in GitHub Desktop.
Port forward to Elasticsearch Pod or Service
# Port forward to a Pod
kubectl port-forward elasticsearch-0 9200:9200
# Port forward to a Service
kubectl port-forward service/elasticsearch 9200:9200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment