In the example, kubectl proxy command is used to proxy a local port to the kube-apiserver:
$ kubectl proxy --port=8080
This will work only if you have a config file recording the address of kube-apiserver, either at the default location ~/.kube/config, or provided by the --kubeconfig= parameter.
If none exists, kubectl proxy --port=8080 will create a loop, proxying itself to itself, and a kubectl command will cause a confusing too many open files error message.
In the example, kubectl proxy command is used to proxy a local port to the kube-apiserver:
$ kubectl proxy --port=8080This will work only if you have a config file recording the address of kube-apiserver, either at the default location
~/.kube/config, or provided by the--kubeconfig=parameter.If none exists,
kubectl proxy --port=8080will create a loop, proxying itself to itself, and akubectlcommand will cause a confusingtoo many open fileserror message.