mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-13 11:25:19 +00:00
gendocs
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