Skip to content
Snippets Groups Projects
Verified Commit 976b6cd2 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

Fix indexer chart autoscaling

It was using the an inexistant target to autoscale

Refs. swh/infra/sysadm-environment#4810
parent ff48413a
No related branches found
No related tags found
1 merge request!38Draft: Fix indexer chart autoscaling
{{ if .Values.indexers.enabled -}}
{{- range $indexer_type, $deployment_config := .Values.indexers.deployments -}}
{{- $indexer_name := ( print "indexer-" $indexer_type ) -}}
{{- $autoscalingConfig := get $deployment_config "autoScaling" -}}
{{ if $autoscalingConfig }}
{{- $journalUser := $.Values.indexers.journalBrokers.user -}}
......@@ -12,7 +13,7 @@ metadata:
namespace: {{ $.Values.namespace }}
spec:
scaleTargetRef:
name: indexer-{{ $indexer_type }}
name: {{ $indexer_name }}
pollingInterval: {{ get $autoscalingConfig "poolInterval" | default 120 }}
minReplicaCount: {{ get $autoscalingConfig "minReplicaCount" | default 1 }}
maxReplicaCount: {{ get $autoscalingConfig "maxReplicaCount" | default 5 }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment