Created
March 30, 2022 23:00
-
-
Save FreedomBen/847e75b0ff30a87ca4f32fc3cd1c0a93 to your computer and use it in GitHub Desktop.
Forward local port 9200 to Elasticsearch in the Kubernetes Cluster
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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