load 150 req/s
| Pod | Placement rule | Placed on |
|---|
kind: HorizontalPodAutoscaler
spec: { scaleTargetRef: { kind: Deployment, name: web }, minReplicas: 2, maxReplicas: 10,
metrics: [{ type: Resource, resource: { name: cpu, target: { type: Utilization, averageUtilization: 50 } } }] }
---
# db pod: nodeSelector: { disktype: ssd }
# trainer pod: tolerations: [{ key: gpu, value: "true", effect: NoSchedule }]
# affinity: { nodeAffinity: { requiredDuringSchedulingIgnoredDuringExecution: ... gpu=true } }
# node-3: kubectl taint nodes node-3 gpu=true:NoSchedule