element-web: use autoscaling/v2 when possible
This commit is contained in:
parent
d5a4ce63e6
commit
85aa23af78
1 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,9 @@
|
|||
{{- if .Values.autoscaling.enabled }}
|
||||
{{- if .Capabilities.APIVersions.Has "autoscaling/v2" }}
|
||||
apiVersion: autoscaling/v2
|
||||
{{- else }}
|
||||
apiVersion: autoscaling/v2beta1
|
||||
{{- end }}
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
name: {{ include "element-web.fullname" . }}
|
||||
|
|
Loading…
Reference in a new issue