UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 8455acf2 authored by Micah Nagel's avatar Micah Nagel :moneybag:
Browse files

Merge branch 'istio-hpa-spec' into 'master'

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

See merge request big-bang/bigbang!2501
parents 61a8c3f4 104d4e2e
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 #1358610 passed with warnings
......@@ -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