Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0dab399

Browse files
committed
Merge pull request #8948 from jlowdermilk/proxy-help
update/fix kubectl proxy example in help string
2 parents 3274bd0 + 7531471 commit 0dab399

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

docs/kubectl_proxy.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ kubectl proxy [--port=PORT] [--www=static-dir] [--www-prefix=prefix] [--api-pref
1818
$ kubectl proxy --port=8011 --www=./local/www/
1919
2020
// Run a proxy to kubernetes apiserver, changing the api prefix to k8s-api
21-
// This makes e.g. the pods api available at localhost:8011/k8s-api/v1beta1/pods/
22-
$ kubectl proxy --api-prefix=k8s-api
21+
// This makes e.g. the pods api available at localhost:8011/k8s-api/v1beta3/pods/
22+
$ kubectl proxy --api-prefix=/k8s-api
2323
```
2424

2525
### Options
@@ -64,6 +64,6 @@ $ kubectl proxy --api-prefix=k8s-api
6464
### SEE ALSO
6565
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
6666

67-
###### Auto generated by spf13/cobra at 2015-05-21 10:33:11.188518514 +0000 UTC
67+
###### Auto generated by spf13/cobra at 2015-05-28 20:57:46.689818993 +0000 UTC
6868

6969
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/kubectl_proxy.md?pixel)]()

docs/man/man1/kubectl-proxy.1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ Run a proxy to the Kubernetes API server.
145145
$ kubectl proxy \-\-port=8011 \-\-www=./local/www/
146146

147147
// Run a proxy to kubernetes apiserver, changing the api prefix to k8s\-api
148-
// This makes e.g. the pods api available at localhost:8011/k8s\-api/v1beta1/pods/
149-
$ kubectl proxy \-\-api\-prefix=k8s\-api
148+
// This makes e.g. the pods api available at localhost:8011/k8s\-api/v1beta3/pods/
149+
$ kubectl proxy \-\-api\-prefix=/k8s\-api
150150

151151
.fi
152152
.RE

pkg/kubectl/cmd/proxy.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ const (
3232
$ kubectl proxy --port=8011 --www=./local/www/
3333
3434
// Run a proxy to kubernetes apiserver, changing the api prefix to k8s-api
35-
// This makes e.g. the pods api available at localhost:8011/k8s-api/v1beta1/pods/
36-
$ kubectl proxy --api-prefix=k8s-api`
35+
// This makes e.g. the pods api available at localhost:8011/k8s-api/v1beta3/pods/
36+
$ kubectl proxy --api-prefix=/k8s-api`
3737
)
3838

3939
func NewCmdProxy(f *cmdutil.Factory, out io.Writer) *cobra.Command {

0 commit comments

Comments
 (0)