Skip to content

Commit a47e676

Browse files
committedDec 8, 2017
Fixes to support new MongoDB 3.6 version
1 parent 0c0adb8 commit a47e676

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
 

‎resources/mongodb-service.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ spec:
5454
- "mongod"
5555
- "--wiredTigerCacheSizeGB"
5656
- "0.25"
57+
- "--bind_ip"
58+
- "0.0.0.0"
5759
- "--replSet"
5860
- "MainRepSet"
5961
- "--auth"

‎scripts/configure_repset_auth.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ echo
2424
# Wait for the MongoDB Replica Set to have a primary ready
2525
echo "Waiting for the MongoDB Replica Set to initialise..."
2626
kubectl exec mongod-0 -c mongod-container -- mongo --eval 'while (rs.status().hasOwnProperty("myState") && rs.status().myState != 1) { print("."); sleep(1000); };'
27-
sleep 2 # Just a little more sleep to ensure everything is ready!
27+
#sleep 2 # Just a little more sleep to ensure everything is ready!
28+
sleep 20 # More sleep to ensure everything is ready! (3.6.0 workaround for https://jira.mongodb.org/browse/SERVER-31916 )
2829
echo "...initialisation of MongoDB Replica Set completed"
2930
echo
3031

0 commit comments

Comments
 (0)
Please sign in to comment.