Skip to content

Instantly share code, notes, and snippets.

@FreedomBen
Created March 30, 2022 23:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FreedomBen/847e75b0ff30a87ca4f32fc3cd1c0a93 to your computer and use it in GitHub Desktop.
Save FreedomBen/847e75b0ff30a87ca4f32fc3cd1c0a93 to your computer and use it in GitHub Desktop.
Forward local port 9200 to Elasticsearch in the Kubernetes Cluster
kubectl port-forward es-cluster-0 9200:9200 --namespace=kube-logging
# Now you can curl the elasticsearch API on localhost 9200
curl http://localhost:9200/_cluster/state?pretty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment