Tips
Show kubeconfig settings
kubectl config viewUse multiple kubeconfig files at the same time
KUBECONFIG=~/.kube/config:~/.kube/kubconfig2Permanently save the namespace for all subsequent kubectl commands in that context.
kubectl config set-context --current --namespace=ggckad-s2Set a context utilizing a specific username and namespace
kubectl config set-context gce --user=cluster-admin --namespace=foo \
&& kubectl config use-context gceList all services in the kube-system namespace
kubectl get svc -n kube-systemLast updated
Was this helpful?