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.
19 lines
630 B
19 lines
630 B
{{- if (.Values.catalog.autoscaling.enabled) }}
|
|
apiVersion: autoscaling/v2
|
|
kind: HorizontalPodAutoscaler
|
|
metadata:
|
|
name: {{ include "iceberg-catalog.fullname" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{- include "iceberg-catalog.labels" . | nindent 4 }}
|
|
app.kubernetes.io/component: catalog
|
|
spec:
|
|
scaleTargetRef:
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
name: {{ include "iceberg-catalog.fullname" . }}
|
|
minReplicas: {{ .Values.catalog.replicas }}
|
|
maxReplicas: {{ .Values.catalog.autoscaling.maxReplicas }}
|
|
metrics:
|
|
{{- toYaml .Values.catalog.autoscaling.metrics | nindent 4 }}
|
|
{{- end }}
|
|
|