mirror of
https://github.com/bokysan/docker-postfix.git
synced 2025-09-10 16:34:42 +08:00
fix HorizontalPodAutoscaler apiVersion
This commit is contained in:
parent
e3898ed071
commit
55f2f71dd5
2 changed files with 5 additions and 2 deletions
|
@ -3,7 +3,11 @@
|
||||||
{{- $fullName := include (print $chart ".fullname") . -}}
|
{{- $fullName := include (print $chart ".fullname") . -}}
|
||||||
{{- $labels := include (print $chart ".labels") . -}}
|
{{- $labels := include (print $chart ".labels") . -}}
|
||||||
{{- $kind := "StatefulSet" -}}
|
{{- $kind := "StatefulSet" -}}
|
||||||
apiVersion: {{ .Values.autoscaling.apiVersion }}
|
{{- if semverCompare ">=1.23-0" .Capabilities.KubeVersion.GitVersion }}
|
||||||
|
apiVersion: autoscaling/v2
|
||||||
|
{{- else }}
|
||||||
|
apiVersion: autoscaling/v2beta1
|
||||||
|
{{- end }}
|
||||||
kind: HorizontalPodAutoscaler
|
kind: HorizontalPodAutoscaler
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ $fullName | quote }}
|
name: {{ $fullName | quote }}
|
||||||
|
|
|
@ -95,7 +95,6 @@ autoscaling:
|
||||||
# targetMemoryUtilizationPercentage: 80
|
# targetMemoryUtilizationPercentage: 80
|
||||||
labels: {}
|
labels: {}
|
||||||
annotations: {}
|
annotations: {}
|
||||||
apiVersion: "autoscaling/v2beta1"
|
|
||||||
|
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
tolerations: []
|
tolerations: []
|
||||||
|
|
Loading…
Add table
Reference in a new issue