Skip to content

Commit 553dc2f

Browse files
authored
Merge pull request #32894 from xurizaemon/kubectl-proxy-url-docs
Docs fix for kubectl proxy configuration
2 parents 7a6a653 + 81fe9b4 commit 553dc2f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

content/en/docs/concepts/configuration/organize-cluster-access-kubeconfig.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ It does not mean that there is a file named `kubeconfig`.
1818
{{< /note >}}
1919

2020
{{< warning >}}
21-
Only use kubeconfig files from trusted sources. Using a specially-crafted kubeconfig file could result in malicious code execution or file exposure.
21+
Only use kubeconfig files from trusted sources. Using a specially-crafted kubeconfig file could result in malicious code execution or file exposure.
2222
If you must use an untrusted kubeconfig file, inspect it carefully first, much as you would a shell script.
2323
{{< /warning>}}
2424

@@ -53,7 +53,7 @@ clusters and namespaces.
5353
A *context* element in a kubeconfig file is used to group access parameters
5454
under a convenient name. Each context has three parameters: cluster, namespace, and user.
5555
By default, the `kubectl` command-line tool uses parameters from
56-
the *current context* to communicate with the cluster.
56+
the *current context* to communicate with the cluster.
5757

5858
To choose the current context:
5959
```
@@ -150,16 +150,16 @@ are stored absolutely.
150150

151151
## Proxy
152152

153-
You can configure `kubectl` to use proxy by setting `proxy-url` in the kubeconfig file, like:
153+
You can configure `kubectl` to use a proxy per cluster using `proxy-url` in your kubeconfig file, like this:
154154

155155
```yaml
156156
apiVersion: v1
157157
kind: Config
158158

159-
proxy-url: https://proxy.host:3128
160-
161159
clusters:
162160
- cluster:
161+
proxy-url: http://proxy.example.org:3128
162+
server: https://k8s.example.org/k8s/clusters/c-xxyyzz
163163
name: development
164164

165165
users:
@@ -168,7 +168,6 @@ users:
168168
contexts:
169169
- context:
170170
name: development
171-
172171
```
173172
174173

0 commit comments

Comments
 (0)