मुख्य सामग्री पर जाएँ
kitlocal.dev

kubectl चीटशीट

लोकल चलता है

100% आपके ब्राउज़र में प्रोसेस होता है। इनपुट और आउटपुट कभी आपके डिवाइस से बाहर नहीं जाते।

Kubernetes 1.30+ पर pod, deployment, service निरीक्षण, लॉग, exec डिबगिंग, रोलआउट, कॉन्टेक्स्ट और JSONPath क्वेरी के लिए Kubernetes CLI कमांड।

यह कैसे काम करता है

kubectl reads and reconciles declarative resource manifests against the API server: `get`/`describe`/`logs` diagnose state, while `apply`/`rollout` safely drive cluster changes.

सर्वाइवल किट

वे कुछ कमांड जिन्हें सबसे पहले सीखना चाहिए।

42 कमांड

कीबोर्ड शॉर्टकट/खोज पर फ़ोकस करेंJKचयन आगे-पीछे करेंCचयनित कॉपी करेंFचयनित बुकमार्क करेंEscखोज साफ़ करें

Contexts, Namespaces & Discovery

Verify which cluster and namespace you target before reading or changing state.

  • आवश्यक

    Print the currently active cluster context before running commands

    kubectl config current-context

    इसका उपयोग कब करें

    Prevents accidentally running dev commands against a production cluster.

    उदाहरण

    kubectl config current-context

Inspect, Logs & Events

Diagnose CrashLoopBackOff, ImagePullBackOff, pending pods, and probe failures.

Shell, Port-Forward & Copy

Connect to cluster services locally, exec into pods, and transfer files.

Apply, Dry-Run & Rollouts

Validate manifests safely, watch rollouts, scale, and roll back cleanly.

Nodes, RBAC & Cleanup

Verify permissions, check resource usage, cordon nodes, and clean pods.

इसे KitLocal टूल में आज़माएँ

15 नव॰ 2026 को जाँचा गया · वर्शन Kubernetes 1.30+ kubectl CLI के विरुद्ध जाँचा गया

स्रोत: Kubernetes kubectl Reference · kubectl Quick Reference

कोण कोष्ठक में दी गई किसी भी चीज़ को अपने मानों से बदलें। कमांड आधिकारिक दस्तावेज़ों से लिए गए हैं, और उदाहरण दिखाए गए वर्शन पर चलाए गए थे।