Kubernetes Useful commands
Kubernetes Useful commands
kubectl get pods -A -> # Lists all pods across all namespaces
kubectl describe pod -> # Displays detailed info about a specific pod
kubectl exec -it -- /bin/sh -> # Executes a shell inside a running pod
kubectl rollout undo deployment -> # Rolls back the last deployment
Managing Nodes
kubectl get nodes -> # Lists all nodes in the cluster
kubectl drain -> # Safely evicts pods from a node (for maintenance)
Debugging Resources
kubectl describe -> # Describes any Kubernetes resource