You cannot 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
614 B
YAML
19 lines
614 B
YAML
5 years ago
|
{{- if .Values.autoscaling.enabled }}
|
||
|
apiVersion: autoscaling/v1
|
||
|
kind: HorizontalPodAutoscaler
|
||
|
metadata:
|
||
|
name: {{ template "invidious.fullname" . }}
|
||
|
labels:
|
||
|
app: {{ template "invidious.name" . }}
|
||
|
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
||
|
release: {{ .Release.Name }}
|
||
|
spec:
|
||
|
scaleTargetRef:
|
||
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
name: {{ template "invidious.fullname" . }}
|
||
|
minReplicas: {{ .Values.autoscaling.minReplicas }}
|
||
|
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
|
||
|
targetCPUUtilizationPercentage: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
|
||
|
{{- end }}
|