19 lines
440 B
YAML
19 lines
440 B
YAML
{{- if .Values.mongodb.enabled }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "notely.mongodb.fullname" . }}
|
|
labels:
|
|
{{- include "notely.labels" . | nindent 4 }}
|
|
spec:
|
|
clusterIP: None
|
|
ports:
|
|
- port: 27017
|
|
targetPort: mongodb
|
|
protocol: TCP
|
|
name: mongodb
|
|
selector:
|
|
app.kubernetes.io/name: {{ include "notely.name" . }}-mongodb
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
{{- end }}
|