Check who can do what (audit)
Show all permissions the current user has in a namespace
kubectl auth can-i --list -n <ns>
- tool
- kubectl73 commands
More kubectl commands
-
kubectl delete pods --all -n <ns>Force recreation of all pods — useful after ConfigMap changes
-
kubectl get ingress -AAll Ingress resources with hosts and addresses
-
kubectl get pods -n <ns> -o yaml > pods-dump.yamlBackup/inspect entire pod state in a namespace
-
kubectl get pods -A -o jsonpath='{range .items[*]}{.metadata.namespace}{"\t"}{.metadata.name}{"\t"}{range .spec.containers[*]}{.image}{"\n"}{end}{end}'Enumerate every container image running in the cluster
-
kubectl config use-context <context>Switch the active cluster context