Kubectl Cheatsheet

Last updated: April 2025

🔍 Cluster connection

kubectl config use-context my-cluster

📦 Work with pods

kubectl get pods -A
kubectl describe pod my-pod
kubectl exec -it my-pod -- /bin/bash
    

💾 Storage

kubectl get pvc
kubectl apply -f pv-pvc.yaml
    

📄 Useful YAML Manifests

📥 Download

You can download a helpful visual flowchart for Kubernetes troubleshooting:
Download: Troubleshooting Flowchart (PDF)

← Back to main page