apiVersion: v1 kind: Service metadata: name: {{ template "peertube.fullname" . }} labels: app: {{ template "peertube.name" . }} chart: {{ template "peertube.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: type: {{ .Values.service.type }} ports: {{- if .Values.nginxproxy.enabled }} - port: {{ .Values.nginxproxy.service.port }} targetPort: http protocol: TCP name: http {{- else }} - port: {{ .Values.service.port }} targetPort: http protocol: TCP name: http {{- end }} selector: app: {{ template "peertube.name" . }} release: {{ .Release.Name }}