Chuyển tới nội dung chính
kitlocal.dev

Bảng tra cứu nhanh kubectl

Chạy cục bộ

Xử lý 100% ngay trong trình duyệt. Dữ liệu đầu vào và kết quả không rời khỏi thiết bị.

Lệnh Kubernetes CLI để kiểm tra pod, deployment, service, xem log, exec gỡ lỗi, rollout, context và truy vấn JSONPath trên Kubernetes 1.30+.

Cách hoạt động

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

Bộ lệnh sống còn

Vài lệnh nên học trước tiên.

42 lệnh

Phím tắt/Tìm kiếmJKDi chuyển mục chọnCSao chép lệnh đang chọnFĐánh dấu mục đang chọnEscXoá tìm kiếm

Contexts, Namespaces & Discovery

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

  • Cơ bản

    Print the currently active cluster context before running commands

    kubectl config current-context

    Khi nào dùng

    Prevents accidentally running dev commands against a production cluster.

    Ví dụ

    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.

Dùng thử trong công cụ KitLocal

Kiểm tra ngày 15 thg 11, 2026 · Đối chiếu với Kubernetes 1.30+ kubectl CLI

Nguồn: Kubernetes kubectl Reference · kubectl Quick Reference

Hãy thay phần trong dấu ngoặc nhọn bằng giá trị của bạn. Lệnh lấy từ tài liệu chính thức, ví dụ đã được chạy thử trên phiên bản được ghi.