Skip to content

Commit

Permalink
fix: argocd hpa defaults (#1681)
Browse files Browse the repository at this point in the history
Co-authored-by: jeho <17126497+j-zimnowoda@users.noreply.github.com>
  • Loading branch information
srodenhuis and j-zimnowoda committed Aug 20, 2024
1 parent 71c5ecc commit 582999c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 6 additions & 6 deletions helmfile.d/snippets/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ environments:
enabled: true
minReplicas: 1
maxReplicas: 5
targetCPUUtilizationPercentage: 70
targetMemoryUtilizationPercentage: 70
targetCPUUtilizationPercentage: 80
targetMemoryUtilizationPercentage: 80
server:
enabled: true
minReplicas: 1
maxReplicas: 5
targetCPUUtilizationPercentage: 70
targetMemoryUtilizationPercentage: 70
targetCPUUtilizationPercentage: 80
targetMemoryUtilizationPercentage: 80
resources:
controller:
requests:
Expand All @@ -36,8 +36,8 @@ environments:
memory: 2Gi
server:
requests:
cpu: 50m
memory: 256M
cpu: 100m
memory: 512M
limits:
cpu: "1"
memory: 1Gi
Expand Down
2 changes: 2 additions & 0 deletions values/argocd/argocd.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ repoServer:
maxReplicas: {{ $a.autoscaling.repoServer.maxReplicas }}
minReplicas: {{ $a.autoscaling.repoServer.minReplicas }}
targetMemoryUtilizationPercentage: {{ $a.autoscaling.repoServer.targetMemoryUtilizationPercentage }}
targetCPUUtilizationPercentage: {{ $a.autoscaling.repoServer.targetCPUUtilizationPercentage }}
resources: {{- $a.resources.repo | toYaml | nindent 4 }}

server:
Expand All @@ -43,6 +44,7 @@ server:
maxReplicas: {{ $a.autoscaling.server.maxReplicas }}
minReplicas: {{ $a.autoscaling.server.minReplicas }}
targetMemoryUtilizationPercentage: {{ $a.autoscaling.server.targetMemoryUtilizationPercentage }}
targetCPUUtilizationPercentage: {{ $a.autoscaling.server.targetCPUUtilizationPercentage }}
resources: {{- $a.resources.server | toYaml | nindent 4 }}

configs:
Expand Down

0 comments on commit 582999c

Please sign in to comment.