22 lines
521 B
YAML
22 lines
521 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "plex.fullname" . }}
|
|
labels:
|
|
{{- include "plex.labels" . | nindent 4 }}
|
|
spec:
|
|
type: {{ .Values.service.type }}
|
|
ports:
|
|
- port: {{ .Values.service.port }}
|
|
targetPort: http
|
|
protocol: TCP
|
|
name: http
|
|
{{- range .Values.service.additional }}
|
|
- port: {{ .port }}
|
|
targetPort: {{ .name }}
|
|
protocol: {{ .protocol }}
|
|
name: {{ .name }}
|
|
{{- end }}
|
|
selector:
|
|
{{- include "plex.selectorLabels" . | nindent 4 }}
|