KUBERNETES(1) kubernetes KUBERNETES(1) (NAME) kubectl-proxy - Kubernetes API (SYNOPSIS) kubectl proxy [OPTIONS] (DESCRIPTION) localhost Kubernetes API . (static content) HTTP . Kubernetes API . (OPTIONS) --accept-hosts="^localhost$,^127\.0\.0\.1$,^\[::1\]$" (regular expression) . --accept-paths="^.*" . --address="127.0.0.1" IP . --api-prefix="/" API . --append-server-path=false true kube . --disable-filter=false true . XSRF . --keepalive=0s (keep-alive) . keepalive 0 . -p, --port=8001 . 0 . --reject-methods="^$" HTTP (: --reject- methods='POST,PUT,PATCH'). --reject-paths="^/api/./pods/./exec,^/api/./pods/./attach" . --accept-paths . -u, --unix-socket="" . -w, --www="" . -P, --www-prefix="/static/" . (OPTIONS INHERITED FROM PARENT COMMANDS) --as="" (impersonate) . (service account) (namespace) . --as-group=[] . --as-uid="" (UID) . --as-user-extra=[] (user extras) . --cache-dir="/home/username/.kube/cache" --certificate-authority="" (certificate authority) --client-certificate="" TLS --client-key="" TLS --cluster="" kubeconfig --context="" kubeconfig --disable-compression=false true --insecure-skip-tls-verify=false true . HTTPS --kubeconfig="" kubeconfig CLI. --kuberc="" kuberc (preferences). export feature gate KUBECTL_KUBERC=false KUBERC=off . --match-server-version=false -n, --namespace="" (namespace) CLI --password="" (basic authentication) API --profile="none" . (none|cpu|heap|goroutine|threadcreate|block|mutex|trace) --profile-output="profile.pprof" --request-timeout="0" . ( 1s 2m 3h). (timeout) . -s, --server="" Kubernetes API --tls-server-name="" . (hostname) --token="" Bearer API --user="" kubeconfig --username="" API --version=false --version --version=raw --version=vX.Y.Z... --warnings-as-errors=false (EXAMPLES) # Kubernetes API kubectl proxy --api-prefix=/ # Kubernetes API # 'curl localhost:8001/api/v1/pods' kubectl proxy --www=/my/files --www-prefix=/static/ --api-prefix=/api/ # Kubernetes API # 'curl localhost:8001/custom/api/v1/pods' kubectl proxy --api-prefix=/custom/ # Kubernetes API 8011 ./local/www/ kubectl proxy --port=8011 --www=./local/www/ # Kubernetes API # (stdout) kubectl proxy --port=0 # Kubernetes API API k8s-api # API localhost:8001/k8s-api/v1/pods/ kubectl proxy --api-prefix=/k8s-api (SEE ALSO) kubectl(1) (HISTORY) Eric Paris (eparis at redhat dot com) kubernetes ! Eric Paris Jan 2015 KUBERNETES(1)