kubectl proxy
Creates a proxy server or application-level gateway between localhost and the Kubernetes API Server. It also allows serving static content over specified HTTP path. All incoming data enters through one port and gets forwarded to the remote kubernetes API Server port, except for the path matching the static content path
Options
Name | Description |
---|---|
--accept-hosts <arg> | Regular expression for hosts that the proxy should accept |
--accept-paths <arg> | Regular expression for paths that the proxy should accept |
--address <arg> | The IP address on which to serve on |
--api-prefix <arg> | Prefix to serve the proxied API under |
--disable-filter | 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 |
--keepalive <arg> | Keepalive specifies the keep-alive period for an active network connection. Set to 0 to disable keepalive |
-p, --port <arg> | The port on which to run the proxy. Set to 0 to pick a random port |
--reject-methods <arg> | Regular expression for HTTP methods that the proxy should reject (example --reject-methods='POST,PUT,PATCH') |
--reject-paths <arg> | Regular expression for paths that the proxy should reject. Paths specified here will be rejected even accepted by --accept-paths |
-u, --unix-socket <arg> | Unix socket on which to run the proxy |
-w, --www <arg> | Also serve static files from the given directory under the specified prefix |
-P, --www-prefix <arg> | Prefix to serve static files under, if static file directory is specified |