Docs fix for kubectl proxy configuration

Follow-up to https://github.com/kubernetes/website/pull/32245
This commit is contained in:
Chris Burgess 2022-04-13 21:05:08 +12:00 committed by GitHub
parent 0d171a1c23
commit 6893daac26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions

View File

@ -150,16 +150,16 @@ are stored absolutely.
## 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
apiVersion: v1
kind: Config
proxy-url: https://proxy.host:3128
clusters:
- cluster:
proxy-url: http://proxy.example.org:3128
server: https://k8s.example.org/k8s/clusters/c-xxyyzz
name: development
users:
@ -167,8 +167,7 @@ users:
contexts:
- context:
name: development
name: development
```