aboutsummaryrefslogtreecommitdiff
path: root/templates/service.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'templates/service.yaml')
-rw-r--r--templates/service.yaml22
1 files changed, 22 insertions, 0 deletions
diff --git a/templates/service.yaml b/templates/service.yaml
new file mode 100644
index 0000000..f1dc7ea
--- /dev/null
+++ b/templates/service.yaml
@@ -0,0 +1,22 @@
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: {{ template "invidious.fullname" . }}
+ labels:
+ app: {{ template "invidious.name" . }}
+ chart: {{ .Chart.Name }}
+ release: {{ .Release.Name }}
+spec:
+ type: {{ .Values.service.type }}
+ ports:
+ - name: http
+ port: {{ .Values.service.port }}
+ targetPort: 3000
+ selector:
+ app: {{ template "invidious.name" . }}
+ release: {{ .Release.Name }}
+{{- if .Values.service.loadBalancerIP }}
+ loadBalancerIP: {{ .Values.service.loadBalancerIP }}
+{{- end }}
+...