Skip to content

Commit 40163be

Browse files
authored
Merge pull request #34850 from kourtneyshort/patch-1
Update cheatsheet.md
2 parents 064a3a7 + a0feb85 commit 40163be

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

content/en/docs/reference/kubectl/cheatsheet.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ kubectl config get-contexts # display list of contexts
6868
kubectl config current-context # display the current-context
6969
kubectl config use-context my-cluster-name # set the default context to my-cluster-name
7070

71+
kubectl config set-cluster my-cluster-name # set a cluster entry in the kubeconfig
72+
73+
# configure the URL to a proxy server to use for requests made by this client in the kubeconfig
74+
kubectl config set-cluster my-cluster-name --proxy-url=my-proxy-url
75+
7176
# add a new user to your kubeconf that supports basic auth
7277
kubectl config set-credentials kubeuser/foo.kubernetes.com --username=kubeuser --password=kubepassword
7378

0 commit comments

Comments
 (0)