udpate prod mongo
parent
360a30779f
commit
0a550897ad
|
@ -66,10 +66,6 @@ spec:
|
||||||
mountPath: /data/db
|
mountPath: /data/db
|
||||||
- name: mongo-conf
|
- name: mongo-conf
|
||||||
mountPath: /etc/mongodb
|
mountPath: /etc/mongodb
|
||||||
- name: mongo-keyfile
|
|
||||||
mountPath: /etc/keyfile.0
|
|
||||||
subPath: keyfile.0
|
|
||||||
readOnly: true
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: mongo-data
|
- name: mongo-data
|
||||||
hostPath:
|
hostPath:
|
||||||
|
@ -98,6 +94,7 @@ spec:
|
||||||
value: "mongo"
|
value: "mongo"
|
||||||
effect: "NoSchedule"
|
effect: "NoSchedule"
|
||||||
|
|
||||||
|
# function: when primary node changes, update mongo-rs0 to primary;
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|
Loading…
Reference in New Issue