kubectl proxy
SafeProxy to the API server
kubectl proxy
Exposes the API on localhost with your auth attached — poke the API with curl or non-kubectl tools.
Examples
kubectl proxy & curl localhost:8001/api/v1/namespacesQuery the API directly
Syntax
kubectl proxy [--port=8001]
Before you run it
Local-only relay.
Related commands
- kubectl port-forwardPort-forward
- kubectl api-resourcesList resource kinds
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store