Command Reference
Kubectl
Read Operations
Check cluster nodes
kubectl get nodesDiagnose nodes
kubectl describe nodesCheck cluster pods
kuebctl get podsDiagnose pods
kubectl describe podsCheck service
kubectl -n <NAMESPACE> get service <SERVICE NAME>
E.g: kubectl -n kubernetes-dashboard get svcCheck Auth permissions
# Check allowed permissions
kubectl auth can-i --list
# Check attributes (self)
kubectl auth whoamiCheck cluster config
kubectl config viewWrite Operations
Execute commands in pod
# kubectl exec -it <POD_NAME> -- sh
kubectl exec -it metadata-db-bd6bd7d97-jjsqh -- shLast updated
Was this helpful?