diff --git a/prod-upgrade/mongo/mongo.yaml b/prod-upgrade/mongo/mongo.yaml index 78b8f78..85534ad 100644 --- a/prod-upgrade/mongo/mongo.yaml +++ b/prod-upgrade/mongo/mongo.yaml @@ -1,17 +1,17 @@ apiVersion: apps/v1 kind: StatefulSet metadata: - name: mongo + name: mongo-rs0 spec: replicas: 3 - serviceName: mongo + serviceName: mongo-rs0 selector: matchLabels: - app: mongo + app: mongo-rs0 template: metadata: labels: - app: mongo + app: mongo-rs0 spec: initContainers: - name: init @@ -102,7 +102,7 @@ spec: apiVersion: v1 kind: Service metadata: - name: mongo + name: mongo-rs0-0 spec: ports: - name: mongo @@ -111,5 +111,18 @@ spec: targetPort: 27017 type: ClusterIP selector: - app: mongo - + app: mongo-rs0 +--- +apiVersion: v1 +kind: Service +metadata: + name: mongo-rs0 +spec: + ports: + - name: mongo + protocol: TCP + port: 27017 + targetPort: 27017 + type: ClusterIP + selector: + app: mongo-rs0 \ No newline at end of file