This commit is contained in:
Daniel Smith
2015-06-03 18:34:37 -07:00
parent 6695d16cb7
commit d615bbb233
2 changed files with 39 additions and 3 deletions

View File

@@ -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