Merge pull request #32894 from xurizaemon/kubectl-proxy-url-docs
Docs fix for kubectl proxy configuration
This commit is contained in:
@@ -150,16 +150,16 @@ are stored absolutely.
|
|||||||
|
|
||||||
## Proxy
|
## Proxy
|
||||||
|
|
||||||
You can configure `kubectl` to use proxy by setting `proxy-url` in the kubeconfig file, like:
|
You can configure `kubectl` to use a proxy per cluster using `proxy-url` in your kubeconfig file, like this:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Config
|
kind: Config
|
||||||
|
|
||||||
proxy-url: https://proxy.host:3128
|
|
||||||
|
|
||||||
clusters:
|
clusters:
|
||||||
- cluster:
|
- cluster:
|
||||||
|
proxy-url: http://proxy.example.org:3128
|
||||||
|
server: https://k8s.example.org/k8s/clusters/c-xxyyzz
|
||||||
name: development
|
name: development
|
||||||
|
|
||||||
users:
|
users:
|
||||||
@@ -168,7 +168,6 @@ users:
|
|||||||
contexts:
|
contexts:
|
||||||
- context:
|
- context:
|
||||||
name: development
|
name: development
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user