21 lines
680 B
YAML
21 lines
680 B
YAML
|
{{- if .Values.autoscaling.enabled }}
|
||
|
apiVersion: autoscaling/v2beta1
|
||
|
kind: HorizontalPodAutoscaler
|
||
|
metadata:
|
||
|
name: {{ template "traefik.fullname" . }}
|
||
|
labels:
|
||
|
app.kubernetes.io/name: {{ template "traefik.name" . }}
|
||
|
helm.sh/chart: {{ template "traefik.chart" . }}
|
||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||
|
spec:
|
||
|
scaleTargetRef:
|
||
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
name: {{ template "traefik.fullname" . }}
|
||
|
minReplicas: {{ .Values.autoscaling.minReplicas }}
|
||
|
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
|
||
|
metrics:
|
||
|
{{ toYaml .Values.autoscaling.metrics | indent 4 }}
|
||
|
{{- end }}
|