.TH "OPENSHIFT CLI" "1" " Openshift CLI User Manuals" "Openshift" "June 2016" "" .SH NAME .PP openshift cli proxy \- Run a proxy to the Kubernetes API server .SH SYNOPSIS .PP \fBopenshift cli proxy\fP [OPTIONS] .SH DESCRIPTION .PP Run a proxy to the API server .SH OPTIONS .PP \fB\-\-accept\-hosts\fP="^localhost$,^127\\.0\\.0\\.1$,^\\[::1\\]$" Regular expression for hosts that the proxy should accept. .PP \fB\-\-accept\-paths\fP="^/.*" Regular expression for paths that the proxy should accept. .PP \fB\-\-address\fP="127.0.0.1" The IP address on which to serve on. .PP \fB\-\-api\-prefix\fP="/" Prefix to serve the proxied API under. .PP \fB\-\-disable\-filter\fP=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. .PP \fB\-p\fP, \fB\-\-port\fP=8001 The port on which to run the proxy. Set to 0 to pick a random port. .PP \fB\-\-reject\-methods\fP="POST,PUT,PATCH" Regular expression for HTTP methods that the proxy should reject. .PP \fB\-\-reject\-paths\fP="^/api/.\fI/pods/.\fP/exec,^/api/.\fI/pods/.\fP/attach" Regular expression for paths that the proxy should reject. .PP \fB\-u\fP, \fB\-\-unix\-socket\fP="" Unix socket on which to run the proxy. .PP \fB\-w\fP, \fB\-\-www\fP="" Also serve static files from the given directory under the specified prefix. .PP \fB\-P\fP, \fB\-\-www\-prefix\fP="/static/" Prefix to serve static files under, if static file directory is specified. .SH OPTIONS INHERITED FROM PARENT COMMANDS .PP \fB\-\-api\-version\fP="" DEPRECATED: The API version to use when talking to the server .PP \fB\-\-as\fP="" Username to impersonate for the operation .PP \fB\-\-certificate\-authority\fP="" Path to a cert. file for the certificate authority .PP \fB\-\-client\-certificate\fP="" Path to a client certificate file for TLS .PP \fB\-\-client\-key\fP="" Path to a client key file for TLS .PP \fB\-\-cluster\fP="" The name of the kubeconfig cluster to use .PP \fB\-\-config\fP="" Path to the config file to use for CLI requests. .PP \fB\-\-context\fP="" The name of the kubeconfig context to use .PP \fB\-\-google\-json\-key\fP="" The Google Cloud Platform Service Account JSON Key to use for authentication. .PP \fB\-\-insecure\-skip\-tls\-verify\fP=false If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure .PP \fB\-\-log\-flush\-frequency\fP=0 Maximum number of seconds between log flushes .PP \fB\-\-match\-server\-version\fP=false Require server version to match client version .PP \fB\-n\fP, \fB\-\-namespace\fP="" If present, the namespace scope for this CLI request .PP \fB\-\-request\-timeout\fP="0" The length of time to wait before giving up on a single server request. Non\-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. .PP \fB\-\-server\fP="" The address and port of the Kubernetes API server .PP \fB\-\-token\fP="" Bearer token for authentication to the API server .PP \fB\-\-user\fP="" The name of the kubeconfig user to use .SH EXAMPLE .PP .RS .nf # Run a proxy to the api server on port 8011, serving static content from ./local/www/ openshift cli proxy \-\-port=8011 \-\-www=./local/www/ # Run a proxy to the api server on an arbitrary local port. # The chosen port for the server will be output to stdout. openshift cli proxy \-\-port=0 # Run a proxy to the api server, changing the api prefix to my\-api # This makes e.g. the pods api available at localhost:8011/my\-api/api/v1/pods/ openshift cli proxy \-\-api\-prefix=/my\-api .fi .RE .SH SEE ALSO .PP \fBopenshift\-cli(1)\fP, .SH HISTORY .PP June 2016, Ported from the Kubernetes man\-doc generator