my-apps/charts/oramap-chart/templates/mongodb-service.yaml

21 lines
479 B
YAML

{{- if .Values.mongodb.enabled }}
apiVersion: v1
kind: Service
metadata:
name: {{ include "oramap.fullname" . }}-mongodb
labels:
{{- include "oramap.labels" . | nindent 4 }}
app.kubernetes.io/component: database
spec:
type: ClusterIP
clusterIP: None
ports:
- port: 27017
targetPort: 27017
protocol: TCP
name: mongodb
selector:
{{- include "oramap.selectorLabels" . | nindent 4 }}
app.kubernetes.io/component: database
{{- end }}