Kubernetes Skill
Automated container deployment, scaling, and management.
Ecosystem Graph
graph LR
kubernetes["Kubernetes"]
kubernetes -- "depends on" --> docker
kubernetes -- "integrates with" --> helm
kubernetes -- "works well with" --> argo-cd
kubernetes -- "monitors" --> prometheus
Quick Start
Kubernetes (K8s) orchestrates clusters of machines running containers. It declarative states (YAML) to manage Deployments, Services, and Ingresses.
kubectl apply -f deployment.yaml
Production Patterns
Operators
For complex stateful applications (like Postgres or Redis), do not manually manage StatefulSets. Use Kubernetes Operators (e.g., CrunchyData Postgres Operator) to handle backups, failovers, and version upgrades automatically.
Architecture & Scaling
Probes
Always define livenessProbe and readinessProbe. The liveness probe determines if the pod needs to be restarted. The readiness probe determines if the pod is ready to receive network traffic from the Service load balancer.
Error Recovery
If pods frequently crash with OOMKilled (Out of Memory), ensure your resources.limits.memory is set correctly and matches the memory allocation limits of your runtime (e.g., Node.js --max-old-space-size).
Security Notes
Enable RBAC (Role-Based Access Control). Do not grant default Service Accounts cluster-admin privileges. Utilize Network Policies to restrict pod-to-pod communication (e.g., only the backend can talk to the database).
Relationships
Prerequisites: docker
Works Well With: helm, argo-cd
References
Why use this skill
Use this when your agent works with kubernetes — structured patterns beat pasted docs and prevent common hallucinations.
AI pitfalls
- Referencing CLI flags or config keys that do not exist
- Using outdated major versions of tools
- Skipping lockfile or version pinning in examples
Production checklist
- Secrets in environment variables, not source code
- Error handling and logging in place
- Rate limits and timeouts configured
Related skills
docker— depends onhelm— integrates withargo-cd— works well withprometheus— monitors
Last Verified: 2026-07-02