update prod mongo
parent
254e907bda
commit
360a30779f
|
@ -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
|
Loading…
Reference in New Issue