This skill helps you design Kubernetes deployment patterns, configure service meshes, and implement container best practices to simplify scalable, secure
npx playbooks add skill dasien/claudemultiagenttemplate --skill container-orchestration
Design and manage containerized applications using Kubernetes and container orchestration platforms, implementing deployment patterns, scaling strategies, and service management.
Context: Deploying a web application with database on Kubernetes
Deployment Manifest:
# web-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: web-app
labels:
app: web
spec:
replicas: 3
selector:
matchLabels:
app: web
template:
metadata:
labels:
app: web
spec:
containers:
- name: web
image: myapp:v1.2.3
ports:
- containerPort: 8080
env:
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: db-credentials
key: url
- name: REDIS_HOST
valueFrom:
configMapKeyRef:
name: app-config
key: redis-host
resources:
requests:
memory: "256Mi"
cpu: "250m"
limits:
memory: "512Mi"
cpu: "500m"
livenessProbe:
httpGet:
path: /health
port: 8080
initialDelaySeconds: 30
periodSeconds: 10
readinessProbe:
httpGet:
path: /ready
port: 8080
initialDelaySeconds: 5
periodSeconds: 5
---
# web-service.yaml
apiVersion: v1
kind: Service
metadata:
name: web-service
spec:
selector:
app: web
ports:
- protocol: TCP
port: 80
targetPort: 8080
type: LoadBalancer
---
# web-hpa.yaml
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: web-hpa
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: web-app
minReplicas: 3
maxReplicas: 10
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 70
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: 80
---
# ingress.yaml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: web-ingress
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod"
nginx.ingress.kubernetes.io/rate-limit: "100"
spec:
tls:
- hosts:
- myapp.example.com
secretName: web-tls
rules:
- host: myapp.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: web-service
port:
number: 80
ConfigMap:
apiVersion: v1
kind: ConfigMap
metadata:
name: app-config
data:
redis-host: "redis.default.svc.cluster.local"
log-level: "info"
feature-flag-new-ui: "true"
Secret (created via kubectl):
kubectl create secret generic db-credentials \
--from-literal=url='postgresql://user:pass@db:5432/mydb'
Deploy:
# Apply all manifests
kubectl apply -f web-deployment.yaml
# Verify deployment
kubectl get deployments
kubectl get pods
kubectl get services
kubectl get hpa
# Check logs
kubectl logs -f deployment/web-app
# Scale manually if needed
kubectl scale deployment web-app --replicas=5
Expected Result:
:latest:latest tag in productionWeekly roundup of top Claude Code skills, MCP servers, and AI coding tips.