You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
698 B
25 lines
698 B
{{- if .Values.hpa.enabled -}}
|
|
apiVersion: {{ .Values.hpa.apiVersion }}
|
|
kind: HorizontalPodAutoscaler
|
|
metadata:
|
|
name: {{ include "OpenMetadata.fullname" . }}-hpa
|
|
labels:
|
|
{{- include "OpenMetadata.labels" . | indent 4 }}
|
|
{{- with .Values.podAnnotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
scaleTargetRef:
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
name: {{ include "OpenMetadata.fullname" . }}
|
|
minReplicas: {{ .Values.hpa.minReplicas }}
|
|
maxReplicas: {{ .Values.hpa.maxReplicas }}
|
|
{{- with .Values.hpa.behavior }}
|
|
behavior:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
metrics:
|
|
{{- toYaml .Values.hpa.metrics | nindent 4 }}
|
|
{{- end }}
|
|
|