thesoftwarehouse/copilot-collections/tsh-implementing-kubernetes
Claude Code and agent skill by thesoftwarehouse/copilot-collections
- community
Checking that the SKILL.md file is still in the repository.
Kubernetes deployment patterns, Helm charts, and cluster management. Use when deploying applications to K8s, designing workload configurations, implementing scaling strategies, or managing cluster resources.
Install
npx vskill@latest install thesoftwarehouse/copilot-collections/tsh-implementing-kubernetesSKILL.md
Kubernetes Patterns
When to Use
- Deploying applications to Kubernetes
- Designing Deployment, StatefulSet, or Job configurations
- Implementing auto-scaling (HPA, VPA, KEDA)
- Creating or modifying Helm charts
- Setting up ingress, networking, and service mesh
- Configuring resource requests, limits, and QoS
Project Detection
Check which Kubernetes tooling the project uses:
helm/orChart.yaml→ Helm chartskustomize/orkustomization.yaml→ Kustomizek8s/orkubernetes/with*.yaml→ Raw manifestsskaffold.yaml→ Skaffold for local devargocd/orApplicationresources → ArgoCD GitOpsflux-system/orKustomizationCRD → Flux GitOps
Use context7 to look up Kubernetes API versions and syntax.
Workload Type Decision
| Workload Type | Use When | |
|---|---|---|
| Deployment | Stateless apps, web servers, APIs | |
| StatefulSet | Databases, stateful apps needing stable identity | |
| DaemonSet | Node-level agents (logging, monitoring) | |
| Job | One-time tasks, batch processing | |
| CronJob | Scheduled recurring tasks |
Deployment Configuration
Resource Management
Rules:
- Always set requests (required for scheduling)
- Set memory limits to prevent OOM impact on node
- CPU limits optional (can cause throttling)
- Request:Limit ratio of 1:2 is good starting point
QoS Classes
| Class | Condition | Eviction Priority | |
|---|---|---|---|
| Guaranteed | requests == limits (all containers) | Last to evict | |
| Burstable | requests < limits | Medium | |
| BestEffort | No requests or limits | First to evict |
Rule: Production workloads should be Guaranteed or Burstable, never BestEffort.
Probes Configuration
Rules:
- Always configure readinessProbe (graceful traffic handling)
- Use startupProbe for slow-starting apps (instead of long initialDelaySeconds)
- livenessProbe should check app health, not dependencies
Pod Disruption Budget
Rule: Always create PDB for production workloads to ensure availability during node drains.
Pod Anti-Affinity
Rule: Spread replicas across nodes/zones for high availability.
Scaling Strategies
Horizontal Pod Autoscaler (HPA)
Scaling Decision Matrix
| Scaling Type | Use When | Tool | |
|---|---|---|---|
| CPU-based | General compute workloads | HPA | |
| Memory-based | Memory-intensive apps | HPA | |
| Custom metrics | Queue depth, request rate | HPA + Prometheus Adapter | |
| Event-driven | Message queues, scheduled jobs | KEDA | |
| Vertical | Right-sizing requests/limits | VPA |
Helm Chart Structure
Helm Best Practices
Rules:
- Don't hardcode image tags in values.yaml (set in CI)
- Use
{{ include "mychart.fullname" . }}for resource names - Provide sensible defaults, override per environment
Ingress Configuration
Ingress Class Decision
| Ingress Controller | Use When | |
|---|---|---|
| nginx-ingress | General purpose, widely supported | |
| AWS ALB | AWS-native, integrated with WAF/ACM | |
| Traefik | Simple setup, automatic HTTPS | |
| Istio Gateway | Service mesh already in use |
Ingress Example (nginx)
Security Context
Rule: Always run as non-root with minimal capabilities in production.
Process
- Discover context → Check existing K8s manifests, Helm charts, Kustomize
- Choose workload type → Deployment, StatefulSet, Job based on requirements
- Configure resources → Set requests/limits based on profiling or estimates
- Add probes → Configure readiness, liveness, and startup probes
- Enable scaling → Add HPA/KEDA based on scaling requirements
- Add resilience → PDB, pod anti-affinity, topology spread
- Configure security → Security context, network policies
- Validate →
kubectl apply --dry-run=server, helm template
Checklist
- [ ] Resource requests and limits defined
- [ ] Readiness and liveness probes configured
- [ ] PodDisruptionBudget created for production
- [ ] Pod anti-affinity or topology spread configured
- [ ] HPA configured for variable workloads
- [ ] Security context with non-root user
- [ ] Image pull policy appropriate (Never use
latestin prod) - [ ] Labels consistent (
app,version,environment) - [ ] Namespace isolation per environment
Anti-Patterns
| Don't | Do | |
|---|---|---|
Use latest image tag | Pin specific versions or SHA | |
| Skip resource requests | Always set requests for scheduling | |
| Single replica in production | Minimum 2 replicas with PDB | |
| Run as root | Use non-root user with minimal caps | |
| Missing readiness probe | Configure probes for graceful traffic | |
kubectl apply in production | GitOps with ArgoCD/Flux | |
| Hardcode values in manifests | Use Helm values or Kustomize overlays | |
| Ignore pod eviction | Set PDB to maintain availability |
Related Skills
tsh-implementing-observability- For K8s monitoring and logging setuptsh-implementing-ci-cd- For K8s deployment pipelinestsh-managing-secrets- For K8s secret management patternstsh-implementing-terraform-modules- For provisioning K8s clusters
Security
- Security scanPassed, 95 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 repositoryChecking.github/skills/tsh-implementing-kubernetes/SKILL.md
Popularity
- Repository stars
- 266
- Repository forks
- 18
- 7-day trend score
- 28
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
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/thesoftwarehouse/copilot-collections/tsh-implementing-kubernetes)