kubectl

Manage Kubernetes clusters with kubectl using context-aware workflows.

1|Updated Feb 1, 2026
One-click install
npx skills add https://github.com/BjzyLabs/vCenterCert --skill kubectl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kubectl
Source: https://github.com/BjzyLabs/vCenterCert/tree/main/.ruler/skills/kubectl
Command: npx skills add https://github.com/BjzyLabs/vCenterCert --skill kubectl

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Kubernetes cluster management with kubectl can be error-prone and time-consuming without a guided workflow. This skill provides a clear, safe routine to perform common operations using kubectl, with emphasis on context and namespace safety.

Core Features & Use Cases

  • Context-aware operations: Verify and switch contexts and namespaces before running commands.
  • Resource inspection and management: List, describe, and troubleshoot pods, deployments, services, ConfigMaps, and Secrets.
  • Deployment and scaling: Update images, scale replicas, and monitor rollouts.
  • Troubleshooting and diagnostics: Retrieve logs, events, and status to diagnose issues quickly.
  • Use Case: For a multi-namespace workflow in a production environment, ensure all kubectl actions target the correct namespace to avoid cross-namespace impact.

Quick Start

Start by validating access to your cluster with kubectl cluster-info and kubectl get nodes, then set your context and namespace as needed. For example: kubectl config set-context <context-name> --namespace=<namespace> and kubectl get pods -n <namespace>.

Frequently Asked Questions about kubectl

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely manage Kubernetes deployments across multiple namespaces?

Safely manage Kubernetes deployments by verifying the current context and setting the target namespace before applying any changes. This prevents accidental cross-namespace impact in production and development environments.

What's the best way to troubleshoot failing pods in a Kubernetes cluster?

Troubleshoot failing pods in a Kubernetes cluster by retrieving logs, events, and status details. Inspect the resources directly to diagnose issues and monitor the deployment rollout status.

How do I update images and scale replicas for a Kubernetes deployment?

Update images and scale replicas for a Kubernetes deployment through a safe, context-aware workflow. This ensures auditable actions while monitoring rollouts and managing resources effectively.

Do I need a configured kubeconfig to inspect Kubernetes ConfigMaps and Secrets?

Yes, you need a configured kubeconfig and a verified current-context to inspect Kubernetes ConfigMaps and Secrets. This ensures your kubectl commands target the correct environment safely.

How do I verify access before inspecting Kubernetes services and nodes?

Verify access before inspecting Kubernetes services and nodes by running cluster-info and get nodes commands. Validate your environment first, then set your context and namespace as needed.