kubernetes-operations

Diagnose and operate Kubernetes clusters through Day-2 SRE triage, rollout, scaling, and security workflows.

Updated Apr 11, 2026
One-click install
npx skills add https://github.com/lurodrisilva/personal-skills --skill kubernetes-operations-lurodrisilva
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: kubernetes-operations
Source: https://github.com/lurodrisilva/personal-skills/tree/main/operations/kubernetes-operations
Command: npx skills add https://github.com/lurodrisilva/personal-skills --skill kubernetes-operations-lurodrisilva

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Running Kubernetes clusters in production means constant Day-2 work: Pods stuck in CrashLoopBackOff, rollouts that hang, nodes under memory pressure, RBAC denials, and PVCs that never bind. This Skill provides a structured SRE playbook that starts from Events and kubectl describe before any action, so incidents are diagnosed at the root cause instead of being masked by blind restarts. ## Core Features & Use Cases - Incident triage decision trees: Maps symptoms like CrashLoopBackOff, OOMKilled (exit 137), Evicted, Pending/FailedScheduling, service-not-reachable, and PVC-Pending to concrete diagnose-and-fix steps using kubectl get|describe|logs --previous|events|top|debug. - Workload and lifecycle operations: Covers Deployment rollout/rollback strategy (maxSurge/maxUnavailable), StatefulSet and DaemonSet ops, probe tuning, graceful shutdown, and version-skew-aware cluster upgrades with kubeadm. - Capacity, scheduling, and autoscaling: Explains requests vs limits, QoS classes and eviction order, LimitRange/ResourceQuota, affinity/taints/topologySpreadConstraints, HPA (autoscaling/v2), VPA, Cluster Autoscaler, Karpenter, and KEDA. - Security, networking, storage, and DR: Guides RBAC verification with auth can-i, Pod Security Admission, NetworkPolicy default-deny, EndpointSlices/CoreDNS debugging, PV/PVC lifecycle and reclaim policies, plus etcd snapshots, CSI VolumeSnapshots, and Velero backup/restore. - Use Case: A Deployment rollout is stuck and Pods show OOMKilled. The Skill walks you through kubectl describe Events, logs --previous, and kubectl top to confirm memory-limit pressure, then right-sizes requests/limits and verifies the rollout completes. ## Quick Start Ask the AI to triage why a specific Pod is in CrashLoopBackOff and recommend the fix using the Kubernetes operations playbook.

Frequently Asked Questions about kubernetes-operations

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

FAQPage Schema
How do I troubleshoot a CrashLoopBackOff Pod in Kubernetes?▼

Start with kubectl describe pod to read the Events section, then run kubectl logs --previous to see the crashed container's output. Common causes are application panics on startup, bad configuration, or a failing liveness probe; fix the app, config, or probe rather than the backoff itself.

Why is my Kubernetes Pod stuck in Pending with FailedScheduling?▼

FailedScheduling means no node fits the Pod: insufficient CPU/memory, unmet affinity rules, untolerated taints, or an unbound PVC. Run kubectl describe pod and read the Events, which name the precise reason, then adjust requests, placement constraints, or storage accordingly.

What is the difference between OOMKilled and CPU throttling in Kubernetes?▼

Exceeding a memory limit kills the container with OOMKilled (exit code 137), while exceeding a CPU limit only throttles it via CFS quota without killing it. Memory limits need headroom sized from observed kubectl top usage; CPU throttling shows up in container_cpu_cfs_throttled metrics.

HPA not scaling even though CPU is high, what should I check?▼

Run kubectl describe hpa and look at the ScalingActive condition and metric values. The most common causes are a missing or unhealthy metrics-server and containers without resource requests, since Utilization targets are computed as a percentage of the request.

Does kubectl drain respect PodDisruptionBudgets?▼

Yes, kubectl drain uses the API-initiated eviction subresource which honors PodDisruptionBudgets and returns 429 when a PDB would be violated. Node-pressure eviction by the kubelet is different: it ignores PDBs entirely as an emergency mechanism.

When should I use this operations skill versus building a Kubernetes operator?▼

Use this skill for running existing clusters: triage, rollouts, capacity, upgrades, security, networking, and storage. Building a custom controller or CRD belongs to the kubernetes-operator-golang skill, and composing cloud infrastructure control planes belongs to the crossplane skill.