udpate prod mongo

main
ycz008 2024-04-19 18:11:07 +08:00
parent d9b907a71c
commit 51a578a801
1 changed files with 12 additions and 1 deletions

View File

@ -41,9 +41,20 @@ spec:
image: mongo:6.0
imagePullPolicy: IfNotPresent
args:
- "--bind_ip=localhost,0.0.0.0"
- "--bind_ip_all"
- "--replSet=bfs-mongo-rs0"
- "--keyFile=/etc/mongodb/keyfile.0"
env:
- name: MONGO_INITDB_ROOT_USERNAME
valueFrom:
secretKeyRef:
name: mongo
key: initdb_root_username
- name: MONGO_INITDB_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: mongo
key: initdb_root_password
ports:
- containerPort: 27017
volumeMounts: