feat(argo-cd): Added spec.behavior in HPA (#1376)
* added behavior in HPA for api version autoscaling/v2beta1 Signed-off-by: medicharlachiranjeevi <medicharlachiranjeevi@gmail.com> * updated readme Signed-off-by: medicharlachiranjeevi <medicharlachiranjeevi@gmail.com> * chore: Apply changes from code review Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> * fix: Add missing quote Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> Signed-off-by: medicharlachiranjeevi <medicharlachiranjeevi@gmail.com> Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
This commit is contained in:
parent
31d6a5f329
commit
0717586410
5 changed files with 50 additions and 13 deletions
|
@ -2,7 +2,7 @@ apiVersion: v2
|
||||||
appVersion: v2.4.11
|
appVersion: v2.4.11
|
||||||
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.0.0
|
version: 5.1.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
|
||||||
keywords:
|
keywords:
|
||||||
|
@ -21,6 +21,4 @@ dependencies:
|
||||||
condition: redis-ha.enabled
|
condition: redis-ha.enabled
|
||||||
annotations:
|
annotations:
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- "[Removed]: Legacy support to run controller as a Deployment"
|
- "[Added]: Ability to customize HPAs spec.behavior field"
|
||||||
- "[Removed]: Legacy support to use old format of repository secrets"
|
|
||||||
- "[Removed]: Parameters server.additionalApplications and server.additionalProjects are moved to a separate chart - argocd-apps"
|
|
||||||
|
|
|
@ -433,6 +433,7 @@ NAME: my-release
|
||||||
| Key | Type | Default | Description |
|
| Key | Type | Default | Description |
|
||||||
|-----|------|---------|-------------|
|
|-----|------|---------|-------------|
|
||||||
| repoServer.affinity | object | `{}` | Assign custom [affinity] rules to the deployment |
|
| repoServer.affinity | object | `{}` | Assign custom [affinity] rules to the deployment |
|
||||||
|
| 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.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] |
|
||||||
|
@ -514,6 +515,7 @@ NAME: my-release
|
||||||
| server.GKEmanagedCertificate.domains | list | `["argocd.example.com"]` | Domains for the Google Managed Certificate |
|
| server.GKEmanagedCertificate.domains | list | `["argocd.example.com"]` | Domains for the Google Managed Certificate |
|
||||||
| server.GKEmanagedCertificate.enabled | bool | `false` | Enable ManagedCertificate custom resource for Google Kubernetes Engine. |
|
| server.GKEmanagedCertificate.enabled | bool | `false` | Enable ManagedCertificate custom resource for Google Kubernetes Engine. |
|
||||||
| server.affinity | object | `{}` | Assign custom [affinity] rules to the deployment |
|
| server.affinity | object | `{}` | Assign custom [affinity] rules to the deployment |
|
||||||
|
| 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.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] |
|
||||||
|
|
|
@ -13,7 +13,7 @@ spec:
|
||||||
minReplicas: {{ .Values.repoServer.autoscaling.minReplicas }}
|
minReplicas: {{ .Values.repoServer.autoscaling.minReplicas }}
|
||||||
maxReplicas: {{ .Values.repoServer.autoscaling.maxReplicas }}
|
maxReplicas: {{ .Values.repoServer.autoscaling.maxReplicas }}
|
||||||
metrics:
|
metrics:
|
||||||
{{- with .Values.repoServer.autoscaling.targetMemoryUtilizationPercentage }}
|
{{- with .Values.repoServer.autoscaling.targetMemoryUtilizationPercentage }}
|
||||||
- type: Resource
|
- type: Resource
|
||||||
resource:
|
resource:
|
||||||
name: memory
|
name: memory
|
||||||
|
@ -24,8 +24,8 @@ spec:
|
||||||
averageUtilization: {{ . }}
|
averageUtilization: {{ . }}
|
||||||
type: Utilization
|
type: Utilization
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.repoServer.autoscaling.targetCPUUtilizationPercentage }}
|
{{- with .Values.repoServer.autoscaling.targetCPUUtilizationPercentage }}
|
||||||
- type: Resource
|
- type: Resource
|
||||||
resource:
|
resource:
|
||||||
name: cpu
|
name: cpu
|
||||||
|
@ -36,5 +36,9 @@ spec:
|
||||||
averageUtilization: {{ . }}
|
averageUtilization: {{ . }}
|
||||||
type: Utilization
|
type: Utilization
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .Values.repoServer.autoscaling.behavior }}
|
||||||
|
behavior:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -13,7 +13,7 @@ spec:
|
||||||
minReplicas: {{ .Values.server.autoscaling.minReplicas }}
|
minReplicas: {{ .Values.server.autoscaling.minReplicas }}
|
||||||
maxReplicas: {{ .Values.server.autoscaling.maxReplicas }}
|
maxReplicas: {{ .Values.server.autoscaling.maxReplicas }}
|
||||||
metrics:
|
metrics:
|
||||||
{{- with .Values.server.autoscaling.targetMemoryUtilizationPercentage }}
|
{{- with .Values.server.autoscaling.targetMemoryUtilizationPercentage }}
|
||||||
- type: Resource
|
- type: Resource
|
||||||
resource:
|
resource:
|
||||||
name: memory
|
name: memory
|
||||||
|
@ -24,8 +24,8 @@ spec:
|
||||||
averageUtilization: {{ . }}
|
averageUtilization: {{ . }}
|
||||||
type: Utilization
|
type: Utilization
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.server.autoscaling.targetCPUUtilizationPercentage }}
|
{{- with .Values.server.autoscaling.targetCPUUtilizationPercentage }}
|
||||||
- type: Resource
|
- type: Resource
|
||||||
resource:
|
resource:
|
||||||
name: cpu
|
name: cpu
|
||||||
|
@ -36,5 +36,9 @@ spec:
|
||||||
averageUtilization: {{ . }}
|
averageUtilization: {{ . }}
|
||||||
type: Utilization
|
type: Utilization
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .Values.server.autoscaling.behavior }}
|
||||||
|
behavior:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -850,7 +850,21 @@ server:
|
||||||
targetCPUUtilizationPercentage: 50
|
targetCPUUtilizationPercentage: 50
|
||||||
# -- Average memory utilization percentage for the Argo CD server [HPA]
|
# -- Average memory utilization percentage for the Argo CD server [HPA]
|
||||||
targetMemoryUtilizationPercentage: 50
|
targetMemoryUtilizationPercentage: 50
|
||||||
|
# -- Configures the scaling behavior of the target in both Up and Down directions.
|
||||||
|
# This is only available on HPA apiVersion `autoscaling/v2beta2` and newer
|
||||||
|
behavior: {}
|
||||||
|
# scaleDown:
|
||||||
|
# stabilizationWindowSeconds: 300
|
||||||
|
# policies:
|
||||||
|
# - type: Pods
|
||||||
|
# value: 1
|
||||||
|
# periodSeconds: 180
|
||||||
|
# scaleUp:
|
||||||
|
# stabilizationWindowSeconds: 300
|
||||||
|
# policies:
|
||||||
|
# - type: Pods
|
||||||
|
# value: 2
|
||||||
|
# periodSeconds: 60
|
||||||
image:
|
image:
|
||||||
# -- Repository to use for the Argo CD server
|
# -- Repository to use for the Argo CD server
|
||||||
# @default -- `""` (defaults to global.image.repository)
|
# @default -- `""` (defaults to global.image.repository)
|
||||||
|
@ -1421,6 +1435,21 @@ repoServer:
|
||||||
targetCPUUtilizationPercentage: 50
|
targetCPUUtilizationPercentage: 50
|
||||||
# -- Average memory utilization percentage for the repo server [HPA]
|
# -- Average memory utilization percentage for the repo server [HPA]
|
||||||
targetMemoryUtilizationPercentage: 50
|
targetMemoryUtilizationPercentage: 50
|
||||||
|
# -- Configures the scaling behavior of the target in both Up and Down directions.
|
||||||
|
# This is only available on HPA apiVersion `autoscaling/v2beta2` and newer
|
||||||
|
behavior: {}
|
||||||
|
# scaleDown:
|
||||||
|
# stabilizationWindowSeconds: 300
|
||||||
|
# policies:
|
||||||
|
# - type: Pods
|
||||||
|
# value: 1
|
||||||
|
# periodSeconds: 180
|
||||||
|
# scaleUp:
|
||||||
|
# stabilizationWindowSeconds: 300
|
||||||
|
# policies:
|
||||||
|
# - type: Pods
|
||||||
|
# value: 2
|
||||||
|
# periodSeconds: 60
|
||||||
|
|
||||||
image:
|
image:
|
||||||
# -- Repository to use for the repo server
|
# -- Repository to use for the repo server
|
||||||
|
|
Loading…
Reference in a new issue