Think before you speak, read before you think.

kubectl config

by

in

查看 contexts clusters

kubectl config get-contexts
kubectl config get-clusters
kubectl config get-contexts -o name
kubectl config get-users

删除 context cluster

kubectl --kubeconfig=./KUBECONFIG_of_my config delete-context gke_europe-west2_123
kubectl --kubeconfig=./KUBECONFIG_of_my config delete-cluster gke_europe-west2_123
kubectl --kubeconfig=./KUBECONFIG_of_my config delete-user gke_europe-west2_123

kubectl via ssh tunnel
https://blog.scottlowe.org/2020/06/16/using-kubectl-via-an-ssh-tunnel/#:~:text=To%20use%20kubectl%20via%20an,to%20reflect%20the%20tunnel%20details.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *