-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhpa.yaml
38 lines (38 loc) · 868 Bytes
/
hpa.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: temporal-worker
namespace: {{ .Release.Namespace }}
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: {{ .Values.worker.deployment }}
minReplicas: 2
maxReplicas: 50
metrics:
- type: External
external:
metric:
name: temporal_cloud_sync_match_rate
selector:
matchLabels:
temporal_namespace: "{{ .Values.temporal.namespace }}"
target:
type: Value
value: 1500m
behavior:
scaleUp:
stabilizationWindowSeconds: 5
selectPolicy: Max
policies:
- type: Pods
value: 10
periodSeconds: 5
scaleDown:
stabilizationWindowSeconds: 5
selectPolicy: Max
policies:
- type: Pods
value: 10
periodSeconds: 5