21 lines
527 B
YAML
21 lines
527 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "paperless-ngx.fullname" . }}
|
|
labels:
|
|
{{- include "paperless-ngx.labels" . | nindent 4 }}
|
|
spec:
|
|
type: {{ .Values.service.type }}
|
|
selector:
|
|
{{- include "paperless-ngx.selectorLabels" . | nindent 4 }}
|
|
ports:
|
|
- name: http
|
|
port: {{ .Values.service.port }}
|
|
protocol: TCP
|
|
targetPort: http
|
|
{{- if .Values.env.PAPERLESS_ENABLE_FLOWER }}
|
|
- name: metrics
|
|
port: 9100
|
|
protocol: TCP
|
|
targetPort: metrics
|
|
{{- end }}
|