aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/common/mongo/templates/service.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/common/mongo/templates/service.yaml')
-rw-r--r--kubernetes/common/mongo/templates/service.yaml10
1 files changed, 5 insertions, 5 deletions
diff --git a/kubernetes/common/mongo/templates/service.yaml b/kubernetes/common/mongo/templates/service.yaml
index e8894c2b59..2be00a32e4 100644
--- a/kubernetes/common/mongo/templates/service.yaml
+++ b/kubernetes/common/mongo/templates/service.yaml
@@ -29,8 +29,8 @@ spec:
- port: {{ .Values.service.internalPort }}
name: {{ .Values.service.portName }}
selector:
- app: {{ include "common.name" . }}
- release: {{ include "common.release" . }}
+ app.kubernetes.io/name: {{ include "common.name" . }}
+ app.kubernetes.io/instance: {{ include "common.release" . }}
clusterIP: None
---
# Client service for connecting to any Mongo instance for reads.
@@ -46,8 +46,8 @@ spec:
- port: {{ .Values.service.internalPort }}
name: {{ .Values.service.portName }}
selector:
- app: {{ include "common.name" . }}
- release: {{ include "common.release" . }}
+ app.kubernetes.io/name: {{ include "common.name" . }}
+ app.kubernetes.io/instance: {{ include "common.release" . }}
---
{{ if .Values.geoEnabled }}
apiVersion: v1
@@ -70,5 +70,5 @@ spec:
type: NodePort
selector:
statefulset.kubernetes.io/pod-name: {{ include "common.fullname" . }}-0
- release: {{ include "common.release" . }}
+ app.kubernetes.io/instance: {{ include "common.release" . }}
{{ end }}