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
d615bbb2
Commit
d615bbb2
authored
Jun 03, 2015
by
Daniel Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gendocs
parent
6695d16c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
3 deletions
+39
-3
kubectl_proxy.md
docs/kubectl_proxy.md
+17
-2
kubectl-proxy.1
docs/man/man1/kubectl-proxy.1
+22
-1
No files found.
docs/kubectl_proxy.md
View file @
d615bbb2
...
...
@@ -5,7 +5,22 @@ Run a proxy to the Kubernetes API server
### 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]
...
...
@@ -64,6 +79,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-0
5-28 20:57:46.689818993
+0000 UTC
###### Auto generated by spf13/cobra at 2015-0
6-04 01:34:05.594492715
+0000 UTC
[

]()
docs/man/man1/kubectl-proxy.1
View file @
d615bbb2
...
...
@@ -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
...
...
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