mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-17 15:13:08 +00:00
Merge pull request #15394 from JanetKuo/kubectl-proxy-api-prefix
Auto commit by PR queue bot
This commit is contained in:
@@ -51,7 +51,7 @@ The above lets you 'curl localhost:8001/custom/api/v1/pods'
|
||||
The IP address on which to serve on.
|
||||
|
||||
.PP
|
||||
\fB\-\-api\-prefix\fP="/api/"
|
||||
\fB\-\-api\-prefix\fP="/"
|
||||
Prefix to serve the proxied API under.
|
||||
|
||||
.PP
|
||||
|
@@ -80,7 +80,7 @@ $ kubectl proxy --api-prefix=/k8s-api
|
||||
--accept-hosts="^localhost$,^127\\.0\\.0\\.1$,^\\[::1\\]$": Regular expression for hosts that the proxy should accept.
|
||||
--accept-paths="^/.*": Regular expression for paths that the proxy should accept.
|
||||
--address="127.0.0.1": The IP address on which to serve on.
|
||||
--api-prefix="/api/": Prefix to serve the proxied API under.
|
||||
--api-prefix="/": Prefix to serve the proxied API under.
|
||||
--disable-filter[=false]: If true, disable request filtering in the proxy. This is dangerous, and can leave you vulnerable to XSRF attacks, when used with an accessible port.
|
||||
-p, --port=8001: The port on which to run the proxy. Set to 0 to pick a random port.
|
||||
--reject-methods="POST,PUT,PATCH": Regular expression for HTTP methods that the proxy should reject.
|
||||
|
Reference in New Issue
Block a user