ancoleman/ai-design-components/operating-kubernetes
Claude Code and agent skill by ancoleman/ai-design-components
- community
Checking that the SKILL.md file is still in the repository.
Operating production Kubernetes clusters effectively with resource management, advanced scheduling, networking, storage, security hardening, and autoscaling. Use when deploying workloads to Kubernetes, configuring cluster resources, implementing security policies, or troubleshooting operational issues.
Install
npx vskill@latest install ancoleman/ai-design-components/operating-kubernetesSKILL.md
Kubernetes Operations
Purpose
Operating Kubernetes clusters in production requires mastery of resource management, scheduling patterns, networking architecture, storage strategies, security hardening, and autoscaling. This skill provides operations-first frameworks for right-sizing workloads, implementing high-availability patterns, securing clusters with RBAC and Pod Security Standards, and systematically troubleshooting common failures.
Use this skill when deploying applications to Kubernetes, configuring cluster resources, implementing NetworkPolicies for zero-trust security, setting up autoscaling (HPA, VPA, KEDA), managing persistent storage, or diagnosing operational issues like CrashLoopBackOff or resource exhaustion.
When to Use This Skill
Common Triggers:
- "Deploy my application to Kubernetes"
- "Configure resource requests and limits"
- "Set up autoscaling for my pods"
- "Implement NetworkPolicies for security"
- "My pod is stuck in Pending/CrashLoopBackOff"
- "Configure RBAC with least privilege"
- "Set up persistent storage for my database"
- "Spread pods across availability zones"
Operations Covered:
- Resource management (CPU/memory, QoS classes, quotas)
- Advanced scheduling (affinity, taints, topology spread)
- Networking (NetworkPolicies, Ingress, Gateway API)
- Storage operations (StorageClasses, PVCs, CSI)
- Security hardening (RBAC, Pod Security Standards, policies)
- Autoscaling (HPA, VPA, KEDA, cluster autoscaler)
- Troubleshooting (systematic debugging playbooks)
Resource Management
Quality of Service (QoS) Classes
Kubernetes assigns QoS classes based on resource requests and limits:
Guaranteed (Highest Priority):
- Requests equal limits for CPU and memory
- Never evicted unless exceeding limits
- Use for critical production services
Burstable (Medium Priority):
- Requests less than limits (or only requests set)
- Can burst above requests
- Evicted under node pressure
- Use for web servers, most applications
BestEffort (Lowest Priority):
- No requests or limits set
- First to be evicted under pressure
- Use only for development/testing
Decision Framework: Which QoS Class?
| Workload Type | QoS Class | Configuration | |
|---|---|---|---|
| Critical API/Database | Guaranteed | requests == limits | |
| Web servers, services | Burstable | limits 1.5-2x requests | |
| Batch jobs | Burstable | Low requests, high limits | |
| Dev/test environments | BestEffort | No limits |
Resource Quotas and LimitRanges
Enforce multi-tenancy with ResourceQuotas (namespace limits) and LimitRanges (per-container defaults):
For detailed resource management patterns including Vertical Pod Autoscaler (VPA), see references/resource-management.md.
Advanced Scheduling
Node Affinity
Control which nodes pods schedule on with required (hard) or preferred (soft) constraints:
Taints and Tolerations
Reserve nodes for specific workloads (inverse of affinity):
Topology Spread Constraints
Distribute pods evenly across failure domains (zones, nodes):
For advanced scheduling patterns including pod priority and preemption, see references/scheduling-patterns.md.
Networking
NetworkPolicies (Zero-Trust Security)
Implement default-deny security with NetworkPolicies:
Ingress vs. Gateway API
Ingress (Legacy):
- Widely supported, mature ecosystem
- Limited expressiveness
- Use for existing applications
Gateway API (Modern):
- Role-oriented design (cluster ops vs. app devs)
- More expressive (HTTPRoute, TCPRoute, TLSRoute)
- Recommended for new applications (GA in Kubernetes 1.29+)
For detailed networking patterns including service mesh integration, see references/networking.md.
Storage
StorageClasses (Define Performance Tiers)
StorageClasses define storage tiers for different workload needs:
Storage Decision Matrix
| Workload | Performance | Access Mode | Storage Class | |
|---|---|---|---|---|
| Database | High | ReadWriteOnce | SSD (gp3/io2) | |
| Shared files | Medium | ReadWriteMany | NFS/EFS | |
| Logs (temp) | Low | ReadWriteOnce | Standard HDD | |
| ML models | High | ReadOnlyMany | Object storage (S3) |
Access Modes:
- ReadWriteOnce (RWO): Single node read-write (most common)
- ReadOnlyMany (ROX): Multiple nodes read-only
- ReadWriteMany (RWX): Multiple nodes read-write (requires network storage)
For detailed storage operations including volume snapshots and CSI drivers, see references/storage.md.
Security
RBAC (Role-Based Access Control)
Implement least-privilege access with RBAC:
Pod Security Standards
Enforce secure pod configurations at the namespace level:
Pod Security Levels:
- Restricted: Most secure, removes all privilege escalations (use for applications)
- Baseline: Minimally restrictive, prevents known escalations
- Privileged: Unrestricted (only for system workloads)
For detailed security patterns including policy enforcement (Kyverno/OPA) and secrets management, see references/security.md.
Autoscaling
Horizontal Pod Autoscaler (HPA)
Scale pod replicas based on CPU, memory, or custom metrics:
KEDA (Event-Driven Autoscaling)
Scale based on events beyond CPU/memory (queues, cron schedules, Prometheus metrics):
Autoscaling Decision Matrix
| Scenario | Use HPA | Use VPA | Use KEDA | Use Cluster Autoscaler | |
|---|---|---|---|---|---|
| Stateless web app with traffic spikes | ✅ | ❌ | ❌ | Maybe | |
| Single-instance database | ❌ | ✅ | ❌ | Maybe | |
| Queue processor (event-driven) | ❌ | ❌ | ✅ | Maybe | |
| Pods pending (insufficient nodes) | ❌ | ❌ | ❌ | ✅ |
For detailed autoscaling patterns including VPA and cluster autoscaler configuration, see references/autoscaling.md.
Troubleshooting
Common Pod Issues
Pod Stuck in Pending:
CrashLoopBackOff:
ImagePullBackOff:
Service Not Accessible:
For systematic troubleshooting playbooks including networking and storage issues, see references/troubleshooting.md.
Reference Documentation
Deep Dives
- references/resource-management.md - Resource requests/limits, QoS classes, ResourceQuotas, VPA
- references/scheduling-patterns.md - Node affinity, taints/tolerations, topology spread, priority
- references/networking.md - NetworkPolicies, Ingress, Gateway API, service mesh integration
- references/storage.md - StorageClasses, PVCs, CSI drivers, volume snapshots
- references/security.md - RBAC, Pod Security Standards, policy enforcement, secrets
- references/autoscaling.md - HPA, VPA, KEDA, cluster autoscaler configuration
- references/troubleshooting.md - Systematic debugging playbooks for common failures
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/operating-kubernetes/SKILL.md
Popularity
- Repository stars
- 352
- Repository forks
- 54
- 7-day trend score
- 29
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 7 May 2026, 5 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ancoleman/ai-design-components/operating-kubernetes)