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 }}
|
minReplicas: {{ .Values.repoServer.autoscaling.minReplicas }}
|
||||||
maxReplicas: {{ .Values.repoServer.autoscaling.maxReplicas }}
|
maxReplicas: {{ .Values.repoServer.autoscaling.maxReplicas }}
|
||||||
metrics:
|
metrics:
|
||||||
|
{{- if .Values.repoServer.autoscaling.metrics }}
|
||||||
|
{{- toYaml .Values.repoServer.autoscaling.metrics | nindent 4 }}
|
||||||
|
{{- else }}
|
||||||
{{- with .Values.repoServer.autoscaling.targetMemoryUtilizationPercentage }}
|
{{- with .Values.repoServer.autoscaling.targetMemoryUtilizationPercentage }}
|
||||||
- type: Resource
|
- type: Resource
|
||||||
resource:
|
resource:
|
||||||
|
@ -38,6 +41,7 @@ spec:
|
||||||
type: Utilization
|
type: Utilization
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- with .Values.repoServer.autoscaling.behavior }}
|
{{- with .Values.repoServer.autoscaling.behavior }}
|
||||||
behavior:
|
behavior:
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
|
|
|
@ -14,6 +14,9 @@ spec:
|
||||||
minReplicas: {{ .Values.server.autoscaling.minReplicas }}
|
minReplicas: {{ .Values.server.autoscaling.minReplicas }}
|
||||||
maxReplicas: {{ .Values.server.autoscaling.maxReplicas }}
|
maxReplicas: {{ .Values.server.autoscaling.maxReplicas }}
|
||||||
metrics:
|
metrics:
|
||||||
|
{{- if .Values.server.autoscaling.metrics }}
|
||||||
|
{{ toYaml .Values.server.autoscaling.metrics | nindent 4 }}
|
||||||
|
{{- else }}
|
||||||
{{- with .Values.server.autoscaling.targetMemoryUtilizationPercentage }}
|
{{- with .Values.server.autoscaling.targetMemoryUtilizationPercentage }}
|
||||||
- type: Resource
|
- type: Resource
|
||||||
resource:
|
resource:
|
||||||
|
@ -38,6 +41,7 @@ spec:
|
||||||
type: Utilization
|
type: Utilization
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end}}
|
||||||
{{- with .Values.server.autoscaling.behavior }}
|
{{- with .Values.server.autoscaling.behavior }}
|
||||||
behavior:
|
behavior:
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
|
|
|
@ -1476,6 +1476,9 @@ server:
|
||||||
# - type: Pods
|
# - type: Pods
|
||||||
# value: 2
|
# value: 2
|
||||||
# periodSeconds: 60
|
# 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
|
## Argo CD server Pod Disruption Budget
|
||||||
## Ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
|
## Ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
|
||||||
|
@ -2043,6 +2046,9 @@ repoServer:
|
||||||
# - type: Pods
|
# - type: Pods
|
||||||
# value: 2
|
# value: 2
|
||||||
# periodSeconds: 60
|
# 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
|
## Repo server Pod Disruption Budget
|
||||||
## Ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
|
## Ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
|
||||||
|
|
Loading…
Reference in a new issue