infra/charts/koodo-reader/templates/service.yaml
2026-01-08 20:15:13 +03:00

28 lines
683 B
YAML

{{- if .Values.service.enabled -}}
apiVersion: v1
kind: Service
metadata:
name: {{ include "koodo-reader.fullname" . }}
labels:
{{- include "koodo-reader.labels" . | nindent 4 }}
{{- with .Values.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
name: http
{{- if .Values.webdav.enabled }}
- port: {{ .Values.webdav.port }}
targetPort: data-server
protocol: TCP
name: webdav
{{- end }}
selector:
{{- include "koodo-reader.selectorLabels" . | nindent 4 }}
{{- end }}