mirror of
https://github.com/wahyd4/charts.git
synced 2026-08-22 03:25:53 +10:00
[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:
@@ -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 }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user