File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
deployments/helm-chart/templates Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ metadata:
10
10
annotations : {{ toYaml .Values.controller.annotations | nindent 4 }}
11
11
{{- end }}
12
12
spec :
13
+ {{- if not .Values.controller.autoscaling.enabled }}
13
14
replicas : {{ .Values.controller.replicaCount }}
15
+ {{- end }}
14
16
selector :
15
17
matchLabels :
16
18
{{- include "nginx-ingress.selectorLabels" . | nindent 6 }}
Original file line number Diff line number Diff line change @@ -18,20 +18,20 @@ spec:
18
18
minReplicas : {{ .Values.controller.autoscaling.minReplicas }}
19
19
maxReplicas : {{ .Values.controller.autoscaling.maxReplicas }}
20
20
metrics :
21
- {{- if .Values.controller.autoscaling.targetCPUUtilizationPercentage }}
21
+ {{- if .Values.controller.autoscaling.targetMemoryUtilizationPercentage }}
22
22
- type : Resource
23
23
resource :
24
- name : cpu
24
+ name : memory
25
25
target :
26
26
type : Utilization
27
- averageUtilization : {{ .Values.controller.autoscaling.targetCPUUtilizationPercentage }}
27
+ averageUtilization : {{ .Values.controller.autoscaling.targetMemoryUtilizationPercentage }}
28
28
{{- end }}
29
- {{- if .Values.controller.autoscaling.targetMemoryUtilizationPercentage }}
29
+ {{- if .Values.controller.autoscaling.targetCPUUtilizationPercentage }}
30
30
- type : Resource
31
31
resource :
32
- name : memory
32
+ name : cpu
33
33
target :
34
34
type : Utilization
35
- averageUtilization : {{ .Values.controller.autoscaling.targetMemoryUtilizationPercentage }}
35
+ averageUtilization : {{ .Values.controller.autoscaling.targetCPUUtilizationPercentage }}
36
36
{{- end }}
37
37
{{- end }}
You can’t perform that action at this time.
0 commit comments