Update kubernetes.cheat

Add kubectl config get-contexts
Add kubectl config current-context
Add kubectl config use-context <context>
This commit is contained in:
fengyuxx 2019-10-14 20:06:22 +08:00 committed by GitHub
parent cc2e3f7832
commit d21e44fc0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,14 @@
% kubernetes, k8s
# Print all contexts
kubectl config get-contexts
# Print current context of kubeconfig
kubectl config current-context
# Set context of kubeconfig
kubectl config use-context <context>
# Print resource documentation
kubectl explain <resource>