Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
75314718
Commit
75314718
authored
May 28, 2015
by
Jeff Lowdermilk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update/fix kubectl proxy example in help string
parent
0378894f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
kubectl_proxy.md
docs/kubectl_proxy.md
+3
-3
kubectl-proxy.1
docs/man/man1/kubectl-proxy.1
+2
-2
proxy.go
pkg/kubectl/cmd/proxy.go
+2
-2
No files found.
docs/kubectl_proxy.md
View file @
75314718
...
@@ -18,8 +18,8 @@ kubectl proxy [--port=PORT] [--www=static-dir] [--www-prefix=prefix] [--api-pref
...
@@ -18,8 +18,8 @@ kubectl proxy [--port=PORT] [--www=static-dir] [--www-prefix=prefix] [--api-pref
$ kubectl proxy --port=8011 --www=./local/www/
$ kubectl proxy --port=8011 --www=./local/www/
// Run a proxy to kubernetes apiserver, changing the api prefix to k8s-api
// 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/v1beta
1
/pods/
// This makes e.g. the pods api available at localhost:8011/k8s-api/v1beta
3
/pods/
$ kubectl proxy --api-prefix=k8s-api
$ kubectl proxy --api-prefix=
/
k8s-api
```
```
### Options
### Options
...
@@ -64,6 +64,6 @@ $ kubectl proxy --api-prefix=k8s-api
...
@@ -64,6 +64,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-2
1 10:33:11.188518514
+0000 UTC
###### Auto generated by spf13/cobra at 2015-05-2
8 20:57:46.689818993
+0000 UTC
[

]()
[

]()
docs/man/man1/kubectl-proxy.1
View file @
75314718
...
@@ -145,8 +145,8 @@ Run a proxy to the Kubernetes API server.
...
@@ -145,8 +145,8 @@ Run a proxy to the Kubernetes API server.
$ kubectl proxy \-\-port=8011 \-\-www=./local/www/
$ kubectl proxy \-\-port=8011 \-\-www=./local/www/
// Run a proxy to kubernetes apiserver, changing the api prefix to k8s\-api
// 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/v1beta
1
/pods/
// This makes e.g. the pods api available at localhost:8011/k8s\-api/v1beta
3
/pods/
$ kubectl proxy \-\-api\-prefix=k8s\-api
$ kubectl proxy \-\-api\-prefix=
/
k8s\-api
.fi
.fi
.RE
.RE
...
...
pkg/kubectl/cmd/proxy.go
View file @
75314718
...
@@ -32,8 +32,8 @@ const (
...
@@ -32,8 +32,8 @@ const (
$ kubectl proxy --port=8011 --www=./local/www/
$ kubectl proxy --port=8011 --www=./local/www/
// Run a proxy to kubernetes apiserver, changing the api prefix to k8s-api
// 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/v1beta
1
/pods/
// This makes e.g. the pods api available at localhost:8011/k8s-api/v1beta
3
/pods/
$ kubectl proxy --api-prefix=k8s-api`
$ kubectl proxy --api-prefix=
/
k8s-api`
)
)
func
NewCmdProxy
(
f
*
cmdutil
.
Factory
,
out
io
.
Writer
)
*
cobra
.
Command
{
func
NewCmdProxy
(
f
*
cmdutil
.
Factory
,
out
io
.
Writer
)
*
cobra
.
Command
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment