diff options
author | Patrick Spek <p.spek@tyil.nl> | 2022-09-23 09:32:46 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2022-09-23 09:32:46 +0200 |
commit | 258ae0c022e0c57e9e87c61e9ca5890ef0480da1 (patch) | |
tree | fb08d7d06b4bf606925da3db12f4d84b3bfbe884 /templates/service.yaml |
Initial commit
Diffstat (limited to 'templates/service.yaml')
-rw-r--r-- | templates/service.yaml | 22 |
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 }} +... |