UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 104d4e2e authored by Rob Ferguson's avatar Rob Ferguson
Browse files

set hpa spec to be compatible with k8s 1.25 and autoscaling/v2

parent 61a8c3f4
No related branches found
No related tags found
1 merge request!2501set hpa spec to be compatible with k8s 1.25 and autoscaling/v2
Pipeline #1358498 passed
......@@ -9,12 +9,30 @@ domain: {{ $domainName }}
enterprise: {{ .Values.istio.enterprise }}
{{- if not (semverCompare "<1.19" .Capabilities.KubeVersion.GitVersion) }}
istiod:
{{- if not (semverCompare "<1.19" .Capabilities.KubeVersion.GitVersion) }}
env:
- name: ENABLE_LEGACY_FSGROUP_INJECTION
value: "false"
{{- end }}
# Change default hpaSpec to ensure generated HPA uses autoscaling/v2
{{- if (semverCompare ">=1.23" .Capabilities.KubeVersion.GitVersion) }}
hpaSpec:
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 60
{{- else }}
hpaSpec:
metrics:
- type: Resource
resource:
name: cpu
targetAverageUtilization: 60
{{- end }}
{{- if or .Values.jaeger.enabled .Values.tempo.enabled }}
tracing:
......
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