COMMAND DESCRIPTION
kubectl config view
kubectl cluster-info
kubectl cluster-info dump
kubectl get namespaces
kubectl config get-contexts
kubectl config set-context --current --namespace=[namespace name]
kubectl config current-context
kubectl config use-context [context name]
kubectl get pods
kubectl exec -it --namespace=[namespace name] [pod name] -- [shell]
Ex.: kubectl exec -it --namespace=clients manager-dshdtr4 -- /bin/sh
kubectl config view -o jsonpath='{.users[*].name}' | xargs -n1 List users in config files
kubectl config get-clusters
kubectl config unset users.[user name] Remove user
kubectl config unset contexts.[context name] Remove context
kubectl config unset clusters.[cluster name] Remove cluster
kubectl config delete-cluster [cluster name] Remove cluster
kubectl config delete-context [context name] Remove conxtext