feat(argo-cd): allow configurable hpa metrics (#2166)
* allow configurable HPA metrics Signed-off-by: Zach Swanson <zswanson@wayfair.com> * update docs Signed-off-by: Zach Swanson <zswanson@wayfair.com> * Update chart version and changelog Signed-off-by: Zach Swanson <zach.swanson@gmail.com> Signed-off-by: Zach Swanson <zswanson@wayfair.com> * Fix values/readme reference to repo server Signed-off-by: Zach Swanson <zswanson@wayfair.com> --------- Signed-off-by: Zach Swanson <zswanson@wayfair.com> Signed-off-by: Zach Swanson <zach.swanson@gmail.com> Signed-off-by: Zach Swanson <1272954+zswanson@users.noreply.github.com>
This commit is contained in:
parent
e053486fab
commit
afccb2e5d4
5 changed files with 19 additions and 3 deletions
|
@ -3,7 +3,7 @@ appVersion: v2.7.7
|
||||||
kubeVersion: ">=1.23.0-0"
|
kubeVersion: ">=1.23.0-0"
|
||||||
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
|
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
|
||||||
name: argo-cd
|
name: argo-cd
|
||||||
version: 5.39.1
|
version: 5.40.0
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
|
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
|
||||||
sources:
|
sources:
|
||||||
|
@ -26,5 +26,5 @@ annotations:
|
||||||
fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252
|
fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252
|
||||||
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
|
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- kind: fixed
|
- kind: changed
|
||||||
description: Ensure `app.kubernetes.io/version` label is valid
|
description: Allow configurable metrics in server and repoServer HPAs
|
||||||
|
|
|
@ -576,6 +576,7 @@ NAME: my-release
|
||||||
| repoServer.autoscaling.behavior | object | `{}` | Configures the scaling behavior of the target in both Up and Down directions. This is only available on HPA apiVersion `autoscaling/v2beta2` and newer |
|
| repoServer.autoscaling.behavior | object | `{}` | Configures the scaling behavior of the target in both Up and Down directions. This is only available on HPA apiVersion `autoscaling/v2beta2` and newer |
|
||||||
| repoServer.autoscaling.enabled | bool | `false` | Enable Horizontal Pod Autoscaler ([HPA]) for the repo server |
|
| repoServer.autoscaling.enabled | bool | `false` | Enable Horizontal Pod Autoscaler ([HPA]) for the repo server |
|
||||||
| repoServer.autoscaling.maxReplicas | int | `5` | Maximum number of replicas for the repo server [HPA] |
|
| repoServer.autoscaling.maxReplicas | int | `5` | Maximum number of replicas for the repo server [HPA] |
|
||||||
|
| repoServer.autoscaling.metrics | list | `[]` | Configures custom HPA metrics for the Argo CD repo server Ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ |
|
||||||
| repoServer.autoscaling.minReplicas | int | `1` | Minimum number of replicas for the repo server [HPA] |
|
| repoServer.autoscaling.minReplicas | int | `1` | Minimum number of replicas for the repo server [HPA] |
|
||||||
| repoServer.autoscaling.targetCPUUtilizationPercentage | int | `50` | Average CPU utilization percentage for the repo server [HPA] |
|
| repoServer.autoscaling.targetCPUUtilizationPercentage | int | `50` | Average CPU utilization percentage for the repo server [HPA] |
|
||||||
| repoServer.autoscaling.targetMemoryUtilizationPercentage | int | `50` | Average memory utilization percentage for the repo server [HPA] |
|
| repoServer.autoscaling.targetMemoryUtilizationPercentage | int | `50` | Average memory utilization percentage for the repo server [HPA] |
|
||||||
|
@ -673,6 +674,7 @@ NAME: my-release
|
||||||
| server.autoscaling.behavior | object | `{}` | Configures the scaling behavior of the target in both Up and Down directions. This is only available on HPA apiVersion `autoscaling/v2beta2` and newer |
|
| server.autoscaling.behavior | object | `{}` | Configures the scaling behavior of the target in both Up and Down directions. This is only available on HPA apiVersion `autoscaling/v2beta2` and newer |
|
||||||
| server.autoscaling.enabled | bool | `false` | Enable Horizontal Pod Autoscaler ([HPA]) for the Argo CD server |
|
| server.autoscaling.enabled | bool | `false` | Enable Horizontal Pod Autoscaler ([HPA]) for the Argo CD server |
|
||||||
| server.autoscaling.maxReplicas | int | `5` | Maximum number of replicas for the Argo CD server [HPA] |
|
| server.autoscaling.maxReplicas | int | `5` | Maximum number of replicas for the Argo CD server [HPA] |
|
||||||
|
| server.autoscaling.metrics | list | `[]` | Configures custom HPA metrics for the Argo CD server Ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ |
|
||||||
| server.autoscaling.minReplicas | int | `1` | Minimum number of replicas for the Argo CD server [HPA] |
|
| server.autoscaling.minReplicas | int | `1` | Minimum number of replicas for the Argo CD server [HPA] |
|
||||||
| server.autoscaling.targetCPUUtilizationPercentage | int | `50` | Average CPU utilization percentage for the Argo CD server [HPA] |
|
| server.autoscaling.targetCPUUtilizationPercentage | int | `50` | Average CPU utilization percentage for the Argo CD server [HPA] |
|
||||||
| server.autoscaling.targetMemoryUtilizationPercentage | int | `50` | Average memory utilization percentage for the Argo CD server [HPA] |
|
| server.autoscaling.targetMemoryUtilizationPercentage | int | `50` | Average memory utilization percentage for the Argo CD server [HPA] |
|
||||||
|
|
|
@ -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 repo 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