@@ -18,7 +18,7 @@ It does not mean that there is a file named `kubeconfig`.
18
18
{{< /note >}}
19
19
20
20
{{< 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.
22
22
If you must use an untrusted kubeconfig file, inspect it carefully first, much as you would a shell script.
23
23
{{< /warning>}}
24
24
@@ -53,7 +53,7 @@ clusters and namespaces.
53
53
A * context* element in a kubeconfig file is used to group access parameters
54
54
under a convenient name. Each context has three parameters: cluster, namespace, and user.
55
55
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.
57
57
58
58
To choose the current context:
59
59
```
@@ -150,16 +150,16 @@ are stored absolutely.
150
150
151
151
## Proxy
152
152
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 :
154
154
155
155
``` yaml
156
156
apiVersion : v1
157
157
kind : Config
158
158
159
- proxy-url : https://proxy.host:3128
160
-
161
159
clusters :
162
160
- cluster :
161
+ proxy-url : http://proxy.example.org:3128
162
+ server : https://k8s.example.org/k8s/clusters/c-xxyyzz
163
163
name : development
164
164
165
165
users :
@@ -168,7 +168,6 @@ users:
168
168
contexts :
169
169
- context :
170
170
name : development
171
-
172
171
` ` `
173
172
174
173
0 commit comments