- Remove replicas:1 override (base has 2) - Add HPA: min 2, max 5 replicas (CPU 70%, memory 80%) - Update image tag to 455d984 (OAuth pre-render fix) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
41 lines
861 B
YAML
41 lines
861 B
YAML
apiVersion: autoscaling/v2
|
|
kind: HorizontalPodAutoscaler
|
|
metadata:
|
|
name: pubmedis
|
|
labels:
|
|
app.kubernetes.io/name: pubmedis
|
|
app.kubernetes.io/part-of: infinicaretech
|
|
spec:
|
|
scaleTargetRef:
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
name: pubmedis
|
|
minReplicas: 2
|
|
maxReplicas: 5
|
|
metrics:
|
|
- type: Resource
|
|
resource:
|
|
name: cpu
|
|
target:
|
|
type: Utilization
|
|
averageUtilization: 70
|
|
- type: Resource
|
|
resource:
|
|
name: memory
|
|
target:
|
|
type: Utilization
|
|
averageUtilization: 80
|
|
behavior:
|
|
scaleUp:
|
|
stabilizationWindowSeconds: 60
|
|
policies:
|
|
- type: Pods
|
|
value: 1
|
|
periodSeconds: 60
|
|
scaleDown:
|
|
stabilizationWindowSeconds: 300
|
|
policies:
|
|
- type: Pods
|
|
value: 1
|
|
periodSeconds: 120
|