[bitnami/thanos] Reorder HPA to prevent GitOps Diff (#4531)

* Reorder HPA to prevent GitOps Diff

Since kubernetes automatically re-order HPA manifests to have memory before CPU, when using GitOps engines like ArgoCD we always get OutOfSync objects.

* Update hpa.yaml

* Update hpa.yaml

* Update Chart.yaml
This commit is contained in:
Shai Katz
2020-12-01 10:55:05 +01:00
committed by GitHub
parent 4ba7e11323
commit 7acaf67440
4 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -23,4 +23,4 @@ name: thanos
sources:
- https://github.com/bitnami/bitnami-docker-thanos
- https://thanos.io
version: 3.2.1
version: 3.2.2
@@ -13,16 +13,16 @@ spec:
minReplicas: {{ .Values.queryFrontend.autoscaling.minReplicas }}
maxReplicas: {{ .Values.queryFrontend.autoscaling.maxReplicas }}
metrics:
{{- if .Values.queryFrontend.autoscaling.targetCPU }}
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ .Values.queryFrontend.autoscaling.targetCPU }}
{{- end }}
{{- if .Values.queryFrontend.autoscaling.targetMemory }}
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ .Values.queryFrontend.autoscaling.targetMemory }}
{{- end }}
{{- if .Values.queryFrontend.autoscaling.targetCPU }}
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ .Values.queryFrontend.autoscaling.targetCPU }}
{{- end }}
{{- end }}
+6 -6
View File
@@ -14,16 +14,16 @@ spec:
minReplicas: {{ $query.autoscaling.minReplicas }}
maxReplicas: {{ $query.autoscaling.maxReplicas }}
metrics:
{{- if $query.autoscaling.targetCPU }}
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ $query.autoscaling.targetCPU }}
{{- end }}
{{- if $query.autoscaling.targetMemory }}
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ $query.autoscaling.targetMemory }}
{{- end }}
{{- if $query.autoscaling.targetCPU }}
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ $query.autoscaling.targetCPU }}
{{- end }}
{{- end }}
@@ -13,16 +13,16 @@ spec:
minReplicas: {{ .Values.storegateway.autoscaling.minReplicas }}
maxReplicas: {{ .Values.storegateway.autoscaling.maxReplicas }}
metrics:
{{- if .Values.storegateway.autoscaling.targetCPU }}
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ .Values.storegateway.autoscaling.targetCPU }}
{{- end }}
{{- if .Values.storegateway.autoscaling.targetMemory }}
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ .Values.storegateway.autoscaling.targetMemory }}
{{- end }}
{{- if .Values.storegateway.autoscaling.targetCPU }}
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ .Values.storegateway.autoscaling.targetCPU }}
{{- end }}
{{- end }}