Using kubectl CLI
kubectl is the primary command-line tool to interact with a Kubernetes cluster.
Common Commands:
kubectl get pods- Lists all podskubectl describe pod <pod-name>- Detailed pod infokubectl apply -f <file.yaml>- Applies a configurationkubectl delete pod <pod-name>- Deletes a pod
View Cluster Info:
kubectl cluster-info
kubectl get nodes