aboutsummaryrefslogtreecommitdiff
path: root/templates/service.yaml
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2022-09-23 11:45:27 +0200
committerPatrick Spek <p.spek@tyil.nl>2022-09-23 11:45:27 +0200
commitdbc36835a16f3c4f7e813a8a536c0922ef1f6bbd (patch)
treeabc402875944ec48a76bd62e1c35eddc9a469407 /templates/service.yaml
parent258ae0c022e0c57e9e87c61e9ca5890ef0480da1 (diff)
Add labels template
Diffstat (limited to 'templates/service.yaml')
-rw-r--r--templates/service.yaml7
1 files changed, 2 insertions, 5 deletions
diff --git a/templates/service.yaml b/templates/service.yaml
index f1dc7ea..0513f51 100644
--- a/templates/service.yaml
+++ b/templates/service.yaml
@@ -4,9 +4,7 @@ kind: Service
metadata:
name: {{ template "invidious.fullname" . }}
labels:
- app: {{ template "invidious.name" . }}
- chart: {{ .Chart.Name }}
- release: {{ .Release.Name }}
+ {{- include "invidious.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
@@ -14,8 +12,7 @@ spec:
port: {{ .Values.service.port }}
targetPort: 3000
selector:
- app: {{ template "invidious.name" . }}
- release: {{ .Release.Name }}
+ {{- include "invidious.selectorLabels" . | nindent 4 }}
{{- if .Values.service.loadBalancerIP }}
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
{{- end }}