/major-ai-skills:kubernetesfrom major-ai-skills
Author and debug Kubernetes workloads with correct probes, quotas, and rollout semantics; distinguish OOM, probe-kill loops, and scheduling failures before kubectl guessing.
Ships in major-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Kubernetes reconciles declared desired state (API objects in etcd) against live cluster state via controllers. The kubelet runs containers; the scheduler binds Pods to nodes; Services/Ingress route traffic only to Ready endpoints. Agents must think in failure domains: scheduling, image pull, probe kills, OOM, config, and admission/RBAC—not “restart the pod” as a default.
┌─────────────────────────────────────────────────────────────┐
│ Kubernetes control & data plane │
│ │
│ Control plane │
│ API server ←→ etcd; scheduler; controllers (Deploy/RS) │
│ Admission: PSA, Kyverno/Gatekeeper, validating webhooks │
│ │
│ Node │
│ kubelet → containerd/CRI → Pod(s) │
│ ├── requests/limits → cgroup OOM vs eviction │
│ ├── startup / readiness / liveness probes │
│ └── ServiceAccount + projected tokens │
│ │
│ Traffic │
│ Service Endpoints ← readiness │ Ingress/Gateway API │
└─────────────────────────────────────────────────────────────┘
Use when
Pending, CrashLoopBackOff, ImagePullBackOff, rollout stalls, or 503 ingress.Do not use when
@helm or GitOps (@argocd).@terraform.@docker.latest is an incident waiting for a rollback you cannot do.kubectl apply --server-side --dry-run=server (or client dry-run) before prod; prefer declarative GitOps over ad-hoc kubectl edit on managed apps.maxUnavailable/maxSurge; watch kubectl rollout status; undo with kubectl rollout undo when Git tag is wrong.apiVersion: apps/v1
kind: Deployment
metadata:
name: api
labels: { app: api, app.kubernetes.io/name: api }
spec:
replicas: 3
strategy:
type: RollingUpdate
rollingUpdate: { maxSurge: 1, maxUnavailable: 0 }
selector:
matchLabels: { app: api }
template:
metadata:
labels: { app: api }
spec:
serviceAccountName: api
securityContext:
runAsNonRoot: true
seccompProfile: { type: RuntimeDefault }
containers:
- name: api
image: ghcr.io/example/api:1.4.2@sha256:<digest>
ports: [{ containerPort: 8080, name: http }]
resources:
requests: { cpu: "100m", memory: "256Mi" }
limits: { cpu: "500m", memory: "512Mi" }
startupProbe:
httpGet: { path: /healthz, port: http }
periodSeconds: 5
failureThreshold: 30
readinessProbe:
httpGet: { path: /readyz, port: http }
periodSeconds: 10
livenessProbe:
httpGet: { path: /livez, port: http }
periodSeconds: 20
envFrom:
- configMapRef: { name: api-config }
volumeMounts:
- name: tmp
mountPath: /tmp
volumes:
- name: tmp
emptyDir: {}
---
apiVersion: v1
kind: Service
metadata:
name: api
spec:
selector: { app: api }
ports: [{ port: 80, targetPort: http, name: http }]
Debug runbook:
kubectl get pods -n <ns> -o wide
kubectl describe pod <pod> -n <ns>
kubectl logs <pod> -n <ns> -c api --previous
kubectl get events -n <ns> --sort-by=.lastTimestamp | tail -20
kubectl get ep -n <ns> api -o yaml
kubectl rollout status deployment/api -n <ns>
| Symptom | Likely cause | First checks |
|---|---|---|
CrashLoopBackOff, exit 137, OOMKilled | Memory limit / leak | describe Last State; kubectl top pod; tune app heap < limit |
CrashLoopBackOff, clean logs, Events Killing … liveness | Probe killing during boot | Add startupProbe; narrow liveness to process hang only |
Running but not Ready, Ingress 503 | Readiness failing | Probe path/port; Endpoints empty; dependency in readiness (avoid) |
Pending | Insufficient CPU/mem, taints, PVC bind | describe Events; node allocatable; PVC status |
ImagePullBackOff | Wrong tag, missing pull secret | describe image; imagePullSecrets; registry auth |
| Surge of failures after GitOps sync | Thundering herd + probe timeout | Stagger sync; lighter probes; raise requests temporarily |
| Works locally in Docker, fails in K8s | Missing env, SA permissions, DNS | Compare env; kubectl auth can-i; in-cluster service DNS |
app.kubernetes.io/* conventions for selectors and observability.kubeconform, kube-score, or policy checks before merge.@prometheus RED metrics and alerts on crash loop rate, not only pod restarts.kubectl config), namespace, or blast radius is unclear.@docker — image build and local reproduction@helm — chart packaging and release lifecycle@argocd — GitOps sync and drift@terraform — cluster and node pool provisioning@nginx / @traefik — ingress data plane behavior@vault — secret injection patternsMANDATORY: Classify pod failures using
describeEvents, exit codes, andlastState.terminated.reasonbefore changing manifests. Use startupProbe for slow boots; keep liveness off external dependencies. Set requests/limits on every production container. Pin image digests. Never recommendcluster-adminor pasting Secret data to “unblock” a deploy.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization./act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.Other plugins' skills for the same job