๐ง 1. Cluster Info and Context
kubectl cluster-info # Display cluster endpoint info
kubectl config get-contexts # List contexts
kubectl config use-context <context-name> # Switch to a specific context
kubectl get nodes # List all worker/master nodes
kubectl describe node <node-name> # Detailed info about a node
๐ฆ 2. Pods
kubectl get pods # List all pods in the current namespace
kubectl get pods -A # List all pods in all namespaces
kubectl describe pod <pod-name> # Show detailed info about a pod
kubectl logs <pod-name> # View logs of a pod
kubectl logs -f <pod-name> # Stream logs
kubectl exec -it <pod-name> -- /bin/bash # Get shell access inside a pod
kubectl delete pod <pod-name> # Delete a pod