k8s-operations

Execute kubectl operations for applying, patching, deleting, and running commands in pods.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/spigell/my-agents --skill k8s-operations-spigell
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: k8s-operations
Source: https://github.com/spigell/my-agents/tree/main/agents/shared/src/tools/ask_kubernetes_expert/skills/k8s-operations
Command: npx skills add https://github.com/spigell/my-agents --skill k8s-operations-spigell

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes guesswork from routine Kubernetes operations by giving a structured way to apply, patch, delete, and run commands against cluster resources.

Core Features & Use Cases

  • Apply Kubernetes manifests to create or update resources reliably, including safe dry runs for production changes.
  • Patch and modify resources by applying either merge-style object patches or JSON Patch operations after checking current state.
  • Manage lifecycle and execution by deleting resources carefully and executing commands inside pods, plus scaling and rollout verification.

Quick Start

Ask to apply a manifest with a safety dry run: "Apply the Deployment manifest below to namespace default using a dry run first, then execute the real apply if it looks correct."

Frequently Asked Questions about k8s-operations

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

FAQPage Schema
How do I safely apply Kubernetes manifests to a production cluster?

To safely apply Kubernetes manifests, you can request a dry run first to preview changes, then execute the real apply if the output looks correct. This structured change management workflow removes guesswork from routine cluster updates.

What is the difference between merge and json patch when updating Kubernetes resources?

Kubernetes patching supports both merge-style object patches and JSON Patch operations. You can select the specific patch type needed to modify resources accurately after checking the current state of the workload.

How do I verify rollout status and history after patching a deployment?

After patching a deployment, you can verify rollout status and check rollout history using kubectl operations. This ensures your scaling, updates, or patch modifications to deployments and statefulsets completed successfully.

Can I execute commands inside a pod using kubectl without writing scripts?

Yes, you can execute commands inside running pods directly through kubectl pod exec operations. This allows you to run operational commands within containers for debugging and management without needing separate scripting.

How do I safely delete workloads and resources in a Kubernetes namespace?

You can carefully delete Kubernetes resources and workloads by checking current state before removal. The Skill applies structured deletion workflows to ensure resources are removed safely without accidental disruption.

Do I need to install additional components to scale deployments and statefulsets?

No additional components or dependencies are required. You can scale deployments and statefulsets directly using kubectl operations, integrating scaling into your standard Kubernetes change management workflow.