init commit
This commit is contained in:
16
helm/templates/headless-service.yaml
Normal file
16
helm/templates/headless-service.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "mongo.name.headless" . }}
|
||||
labels:
|
||||
{{- include "mongo.labels" . | nindent 4 }}
|
||||
spec:
|
||||
clusterIP: None
|
||||
publishNotReadyAddresses: true
|
||||
ports:
|
||||
- port: {{ .Values.service.port }}
|
||||
targetPort: {{ .Values.service.port }}
|
||||
protocol: TCP
|
||||
name: mongodb
|
||||
selector:
|
||||
app.kubernetes.io/name: {{ include "mongo.name" . }}
|
||||
Reference in New Issue
Block a user