mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-11 06:02:18 +00:00
Merge pull request #9233 from lavalamp/no-ro-nonbreaking
Allow kubectl proxy to proxy everything
This commit is contained in:
@@ -13,7 +13,28 @@ kubectl proxy \- Run a proxy to the Kubernetes API server
|
||||
|
||||
.SH DESCRIPTION
|
||||
.PP
|
||||
Run a proxy to the Kubernetes API server.
|
||||
To proxy all of the kubernetes api and nothing else, use:
|
||||
|
||||
.PP
|
||||
kubectl proxy \-\-api\-prefix=/
|
||||
|
||||
.PP
|
||||
To proxy only part of the kubernetes api and also some static files:
|
||||
|
||||
.PP
|
||||
kubectl proxy \-\-www=/my/files \-\-www\-prefix=/static/ \-\-api\-prefix=/api/
|
||||
|
||||
.PP
|
||||
The above lets you 'curl localhost:8001/api/v1/pods'.
|
||||
|
||||
.PP
|
||||
To proxy the entire kubernetes api at a different root, use:
|
||||
|
||||
.PP
|
||||
kubectl proxy \-\-api\-prefix=/custom/
|
||||
|
||||
.PP
|
||||
The above lets you 'curl localhost:8001/custom/api/v1/pods'
|
||||
|
||||
|
||||
.SH OPTIONS
|
||||
|
Reference in New Issue
Block a user