mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-08-05 02:24:52 +00:00
22 lines
668 B
YAML
22 lines
668 B
YAML
{{- if .Values.solr.enabled -}}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "docspell.fullname" . }}-solr
|
|
labels:
|
|
{{- include "solr.labels" . | nindent 4 }}
|
|
{{- if .Values.solr.service.labels }}
|
|
{{- toYaml .Values.solr.serivce.labels | nindent 4 }}
|
|
{{- end }}
|
|
annotations:
|
|
{{- toYaml .Values.solr.service.annotations | nindent 4 }}
|
|
spec:
|
|
type: {{ .Values.solr.service.type }}
|
|
ports:
|
|
- port: {{ .Values.solr.service.port }}
|
|
targetPort: {{ .Values.solr.service.targetPort | default .Values.solr.service.port }}
|
|
protocol: TCP
|
|
name: solr
|
|
selector:
|
|
{{- include "solr.selectorLabels" . | nindent 4 }}
|
|
{{- end -}} |