mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
gendocs
This commit is contained in:
parent
6695d16cb7
commit
d615bbb233
@ -5,7 +5,22 @@ Run a proxy to the Kubernetes API server
|
|||||||
### Synopsis
|
### Synopsis
|
||||||
|
|
||||||
|
|
||||||
Run a proxy to the Kubernetes API server.
|
To proxy all of the kubernetes api and nothing else, use:
|
||||||
|
|
||||||
|
kubectl proxy --api-prefix=/
|
||||||
|
|
||||||
|
To proxy only part of the kubernetes api and also some static files:
|
||||||
|
|
||||||
|
kubectl proxy --www=/my/files --www-prefix=/static/ --api-prefix=/api/
|
||||||
|
|
||||||
|
The above lets you 'curl localhost:8001/api/v1/pods'.
|
||||||
|
|
||||||
|
To proxy the entire kubernetes api at a different root, use:
|
||||||
|
|
||||||
|
kubectl proxy --api-prefix=/custom/
|
||||||
|
|
||||||
|
The above lets you 'curl localhost:8001/custom/api/v1/pods'
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
kubectl proxy [--port=PORT] [--www=static-dir] [--www-prefix=prefix] [--api-prefix=prefix]
|
kubectl proxy [--port=PORT] [--www=static-dir] [--www-prefix=prefix] [--api-prefix=prefix]
|
||||||
@ -64,6 +79,6 @@ $ kubectl proxy --api-prefix=/k8s-api
|
|||||||
### SEE ALSO
|
### SEE ALSO
|
||||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra at 2015-05-28 20:57:46.689818993 +0000 UTC
|
###### Auto generated by spf13/cobra at 2015-06-04 01:34:05.594492715 +0000 UTC
|
||||||
|
|
||||||
[]()
|
[]()
|
||||||
|
@ -13,7 +13,28 @@ kubectl proxy \- Run a proxy to the Kubernetes API server
|
|||||||
|
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
.PP
|
.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
|
.SH OPTIONS
|
||||||
|
Loading…
Reference in New Issue
Block a user