List your permissions
Shows everything the current user can do in the namespace
kubectl auth can-i --list -n <ns>
- tool
- kubectl73 commands
More kubectl commands
-
kubectl delete pods --all -n <ns>Forces all pods to be recreated; handy after a ConfigMap change
-
kubectl get ingress -AAll Ingress resources with their hosts and addresses
-
kubectl get pods -n <ns> -o yaml > pods-dump.yamlSaves the full state of all pods in a namespace for backup or analysis
-
kubectl get pods -A -o jsonpath='{range .items[*]}{.metadata.namespace}{"\t"}{.metadata.name}{"\t"}{range .spec.containers[*]}{.image}{"\n"}{end}{end}'Shows every container image running in the cluster, with namespace and pod
-
kubectl config use-context <context>Changes the active cluster context