kubernetes-patternslisted
Install: claude install-skill Tibsfox/gsd-skill-creator
# Kubernetes Patterns
Best practices for deploying, scaling, securing, and managing workloads on Kubernetes. This skill covers resource management, Helm chart structure, service mesh configuration, autoscaling strategies, and security hardening.
## Resource Management
Every container must declare resource requests and limits. Without them, the scheduler cannot make informed placement decisions and nodes can become overcommitted.
| Resource Type | Request (Guaranteed) | Limit (Maximum) | What Happens at Limit |
|---------------|---------------------|-----------------|----------------------|
| CPU | Reserved on node | Throttled (not killed) | Container slows down |
| Memory | Reserved on node | OOM-killed | Container restarts |
| Ephemeral Storage | Reserved on node | Evicted | Pod removed from node |
| GPU | Reserved on node | Hard limit | Cannot exceed |
### QoS Classes
Kubernetes assigns QoS classes based on resource declarations. This determines eviction priority.
| QoS Class | Condition | Eviction Priority |
|-----------|-----------|-------------------|
| Guaranteed | requests == limits for all containers | Last (highest priority) |
| Burstable | requests < limits for at least one container | Middle |
| BestEffort | No requests or limits set | First (lowest priority) |
### Resource Declaration Best Practices
```yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: api-server
namespace: production
spec:
replicas: 3
selector:
matchLabels:
app: