Forked from ipedrazas/gist:403df2ed30ea8682e2b709ddc1c24bcf
Created
August 17, 2023 14:15
-
-
Save hartfordfive/2cd190f1e1cd2ecdf04bfee57b34c464 to your computer and use it in GitHub Desktop.
curl internal service kubernetes kubectl proxy
This file contains 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
# To call from outside the cluster a service type `ClusterIP` | |
# We use `kubectl proxy` | |
kubectl proxy | |
# Then, the service can be accessed by calling: | |
curl http://localhost:8001/api/v1/namespaces/status/services/x01-kstatus-api:5000/proxy/api/jobs | |
# This is | |
# curl http://localhost:8001/api/v1/namespaces/[NAMESPACE]/services/[SERVICE:PORT]/proxy/[QUERY_STRING] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment