Skip to content

Commit

Permalink
Agent deployed with ArgoCD remains in endless sync loop
Browse files Browse the repository at this point in the history
By reordering metrics argocd will no longer be stuck in endless loop.
Related issue in ArgoCD project argoproj/argo-cd#1079
  • Loading branch information
tiithansen committed May 30, 2023
1 parent 5472497 commit 817dfaf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions operations/helm/charts/grafana-agent/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ spec:
minReplicas: {{ .minReplicas }}
maxReplicas: {{ .maxReplicas }}
metrics:
{{- with .targetCPUUtilizationPercentage }}
{{- with .targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: cpu
name: memory
target:
type: Utilization
averageUtilization: {{ . }}
{{- end }}
{{- with .targetMemoryUtilizationPercentage }}
{{- with .targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: memory
name: cpu
target:
type: Utilization
averageUtilization: {{ . }}
Expand Down

0 comments on commit 817dfaf

Please sign in to comment.