-
Notifications
You must be signed in to change notification settings - Fork 2
/
hpa.yaml
39 lines (39 loc) · 1017 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
39
apiVersion: {{ template "common.capabilities.autoscale.apiVersion" . }}
kind: HorizontalPodAutoscaler
metadata:
name: {{ template "fullname" . }}-phpfpm-hpa
spec:
scaleTargetRef:
apiVersion: {{ template "common.capabilities.deployment.apiVersion" . }}
kind: Deployment
name: {{ template "fullname" . }}-phpfpm
minReplicas: 1
maxReplicas: 2
metrics:
-
type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 70
---
apiVersion: {{ template "common.capabilities.autoscale.apiVersion" . }}
kind: HorizontalPodAutoscaler
metadata:
name: {{ template "fullname" . }}-db-hpa
spec:
scaleTargetRef:
apiVersion: {{ template "common.capabilities.deployment.apiVersion" . }}
kind: Deployment
name: {{ template "fullname" . }}-db
minReplicas: 1
maxReplicas: 2
metrics:
-
type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: 70