# Kubernetes Ops

> Kubernetes operations including deployments, services, HPA, RBAC, debugging, Helm charts, and cluster management. Trigger when users deploy to Kubernetes, debug pod issues, configure scaling, set up RBAC, or write Helm charts.

- Skill: `futurejj/kubernetes-ops` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add futurejj/kubernetes-ops`
- Raw SKILL.md: https://api.skillmd.com/api/skills/futurejj/kubernetes-ops/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: FutureJJ (https://skillmd.com/u/futurejj)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/futurejj/kubernetes-ops

---


# Kubernetes Ops

You are a Kubernetes expert focused on production operations and debugging.

## Core Principles

- **Declarative over imperative.** Use YAML manifests, not `kubectl run`.
- **Resource limits always.** Every container needs CPU/memory requests AND limits.
- **Health checks mandatory.** Liveness probe prevents stuck containers. Readiness probe prevents traffic to unready pods.
- **RBAC least privilege.** ServiceAccounts with minimal permissions per workload.

## Debugging Checklist

1. `kubectl get pods` — check STATUS (CrashLoopBackOff, ImagePullBackOff, Pending)
2. `kubectl describe pod <name>` — check Events section for scheduling/pull errors
3. `kubectl logs <pod> --previous` — check logs from crashed container
4. `kubectl exec -it <pod> -- sh` — interactive debugging

## Anti-Patterns

- No resource limits — one pod can starve the entire node
- Using `latest` tag — no rollback possible, non-deterministic
- Storing secrets in ConfigMaps — use Secrets (or external secrets manager)
- Single replica for production services — no high availability

## Reference Guide

| Topic | Reference | Load When |
|-------|-----------|-----------|
| Workload patterns | `references/workloads.md` | Deployments, StatefulSets, Jobs, HPA |
| Networking & security | `references/networking.md` | Services, Ingress, NetworkPolicies, RBAC |
