diff --git a/prod-upgrade/mongo/mongo.yaml b/prod-upgrade/mongo/mongo.yaml index a8c2158..722e4b5 100644 --- a/prod-upgrade/mongo/mongo.yaml +++ b/prod-upgrade/mongo/mongo.yaml @@ -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: