allow configurable HPA metrics
Signed-off-by: Zach Swanson <zswanson@wayfair.com>
This commit is contained in:
parent
e15b7b7018
commit
b6aad98e9f
3 changed files with 14 additions and 0 deletions
|
@ -14,6 +14,9 @@ spec:
|
|||
minReplicas: {{ .Values.repoServer.autoscaling.minReplicas }}
|
||||
maxReplicas: {{ .Values.repoServer.autoscaling.maxReplicas }}
|
||||
metrics:
|
||||
{{- if .Values.repoServer.autoscaling.metrics }}
|
||||
{{- toYaml .Values.repoServer.autoscaling.metrics | nindent 4 }}
|
||||
{{- else }}
|
||||
{{- with .Values.repoServer.autoscaling.targetMemoryUtilizationPercentage }}
|
||||
- type: Resource
|
||||
resource:
|
||||
|
@ -38,6 +41,7 @@ spec:
|
|||
type: Utilization
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- with .Values.repoServer.autoscaling.behavior }}
|
||||
behavior:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
|
|
|
@ -14,6 +14,9 @@ spec:
|
|||
minReplicas: {{ .Values.server.autoscaling.minReplicas }}
|
||||
maxReplicas: {{ .Values.server.autoscaling.maxReplicas }}
|
||||
metrics:
|
||||
{{- if .Values.server.autoscaling.metrics }}
|
||||
{{ toYaml .Values.server.autoscaling.metrics | nindent 4 }}
|
||||
{{- else }}
|
||||
{{- with .Values.server.autoscaling.targetMemoryUtilizationPercentage }}
|
||||
- type: Resource
|
||||
resource:
|
||||
|
@ -38,6 +41,7 @@ spec:
|
|||
type: Utilization
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end}}
|
||||
{{- with .Values.server.autoscaling.behavior }}
|
||||
behavior:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
|
|
|
@ -1476,6 +1476,9 @@ server:
|
|||
# - type: Pods
|
||||
# value: 2
|
||||
# periodSeconds: 60
|
||||
# -- Configures custom HPA metrics for the Argo CD server
|
||||
# Ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
|
||||
metrics: []
|
||||
|
||||
## Argo CD server Pod Disruption Budget
|
||||
## Ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
|
||||
|
@ -2043,6 +2046,9 @@ repoServer:
|
|||
# - type: Pods
|
||||
# value: 2
|
||||
# periodSeconds: 60
|
||||
# -- Configures custom HPA metrics for the Argo CD server
|
||||
# Ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
|
||||
metrics: []
|
||||
|
||||
## Repo server Pod Disruption Budget
|
||||
## Ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
|
||||
|
|
Loading…
Reference in a new issue