diff options
author | Patrick Spek <p.spek@tyil.nl> | 2022-09-23 11:45:27 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2022-09-23 11:45:27 +0200 |
commit | dbc36835a16f3c4f7e813a8a536c0922ef1f6bbd (patch) | |
tree | abc402875944ec48a76bd62e1c35eddc9a469407 /templates/hpa.yaml | |
parent | 258ae0c022e0c57e9e87c61e9ca5890ef0480da1 (diff) |
Add labels template
Diffstat (limited to 'templates/hpa.yaml')
-rw-r--r-- | templates/hpa.yaml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/hpa.yaml b/templates/hpa.yaml index c6fbefe..fe1f4e4 100644 --- a/templates/hpa.yaml +++ b/templates/hpa.yaml @@ -1,12 +1,11 @@ +--- {{- 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 }} + {{- include "invidious.labels" . | nindent 4 }} spec: scaleTargetRef: apiVersion: apps/v1 @@ -16,3 +15,4 @@ spec: maxReplicas: {{ .Values.autoscaling.maxReplicas }} targetCPUUtilizationPercentage: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} {{- end }} +... |