Check who can do what (audit) kubectl
Show all permissions the current user has in a namespace
kubectl auth can-i --list -n <ns>
more kubectl
all 73 commands →
Delete all pods in namespace
kubectl delete pods --all -n <ns>
Get ingress list
kubectl get ingress -A
Dump all pod YAML to file
kubectl get pods -n <ns> -o yaml > pods-dump.yaml
Jsonpath — all container images
kubectl get pods -A -o jsonpath='{range .items[*]}{.metadata.namespace}{"\t"}{.metadata.name}{"\t"}{range .spec.containers[*]}{.image}{"\n"}{end}{end}'
Switch kubeconfig context
kubectl config use-context <context>