mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 00:07:50 +00:00
update/fix kubectl proxy example in help string
This commit is contained in:
parent
0378894f44
commit
75314718eb
@ -18,8 +18,8 @@ kubectl proxy [--port=PORT] [--www=static-dir] [--www-prefix=prefix] [--api-pref
|
||||
$ kubectl proxy --port=8011 --www=./local/www/
|
||||
|
||||
// Run a proxy to kubernetes apiserver, changing the api prefix to k8s-api
|
||||
// This makes e.g. the pods api available at localhost:8011/k8s-api/v1beta1/pods/
|
||||
$ kubectl proxy --api-prefix=k8s-api
|
||||
// This makes e.g. the pods api available at localhost:8011/k8s-api/v1beta3/pods/
|
||||
$ kubectl proxy --api-prefix=/k8s-api
|
||||
```
|
||||
|
||||
### Options
|
||||
@ -64,6 +64,6 @@ $ kubectl proxy --api-prefix=k8s-api
|
||||
### SEE ALSO
|
||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-05-21 10:33:11.188518514 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-05-28 20:57:46.689818993 +0000 UTC
|
||||
|
||||
[]()
|
||||
|
@ -145,8 +145,8 @@ Run a proxy to the Kubernetes API server.
|
||||
$ kubectl proxy \-\-port=8011 \-\-www=./local/www/
|
||||
|
||||
// Run a proxy to kubernetes apiserver, changing the api prefix to k8s\-api
|
||||
// This makes e.g. the pods api available at localhost:8011/k8s\-api/v1beta1/pods/
|
||||
$ kubectl proxy \-\-api\-prefix=k8s\-api
|
||||
// This makes e.g. the pods api available at localhost:8011/k8s\-api/v1beta3/pods/
|
||||
$ kubectl proxy \-\-api\-prefix=/k8s\-api
|
||||
|
||||
.fi
|
||||
.RE
|
||||
|
@ -32,8 +32,8 @@ const (
|
||||
$ kubectl proxy --port=8011 --www=./local/www/
|
||||
|
||||
// Run a proxy to kubernetes apiserver, changing the api prefix to k8s-api
|
||||
// This makes e.g. the pods api available at localhost:8011/k8s-api/v1beta1/pods/
|
||||
$ kubectl proxy --api-prefix=k8s-api`
|
||||
// This makes e.g. the pods api available at localhost:8011/k8s-api/v1beta3/pods/
|
||||
$ kubectl proxy --api-prefix=/k8s-api`
|
||||
)
|
||||
|
||||
func NewCmdProxy(f *cmdutil.Factory, out io.Writer) *cobra.Command {
|
||||
|
Loading…
Reference in New Issue
Block a user