Exécuter une base de données MongoDB dans Kubernetes avec les StatefulSets avis
12222 avis
Shiva Krishna K. · Examiné il y a environ 8 ans
Elias R. · Examiné il y a environ 8 ans
Vijay G. · Examiné il y a environ 8 ans
Lei W. · Examiné il y a environ 8 ans
Jason Christian W. · Examiné il y a environ 8 ans
Training T. · Examiné il y a environ 8 ans
Swayangjit P. · Examiné il y a environ 8 ans
not quite
Ganesh R. · Examiné il y a environ 8 ans
Kong M. · Examiné il y a environ 8 ans
Gabriel L. · Examiné il y a environ 8 ans
Geoff H. · Examiné il y a environ 8 ans
Devashish S. · Examiné il y a environ 8 ans
Hariprasad B. · Examiné il y a environ 8 ans
I followed all the steps, but when I connect to mongo-0 and initiate the replica set, the config only shows one member. It complains that there is no configuration. I tried this lab twice and the same thing happened. NAME READY STATUS RESTARTS AGE mongo-0 2/2 Running 0 2m mongo-1 2/2 Running 0 1m mongo-2 2/2 Running 0 1m ^C google194169_student@qwiklabs-gcp-55ab6bc9339981a6:~/mongo-k8s-sidecar/example/StatefulSet$ kubectl exec -ti mongo-0 mongo Defaulting container name to mongo. Use 'kubectl describe pod/mongo-0' to see all of the containers in this pod. MongoDB shell version v3.6.2 connecting to: mongodb://127.0.0.1:27017 MongoDB server version: 3.6.2 Welcome to the MongoDB shell. For interactive help, type "help". For more comprehensive documentation, see http://docs.mongodb.org/ Questions? Try the support group http://groups.google.com/group/mongodb-user Server has startup warnings: 2018-01-21T22:51:40.475+0000 I STORAGE [initandlisten] 2018-01-21T22:51:40.475+0000 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine 2018-01-21T22:51:40.475+0000 I STORAGE [initandlisten] ** See http://dochub.mongodb.org/core/prodnotes-filesystem 2018-01-21T22:51:40.554+0000 I CONTROL [initandlisten] 2018-01-21T22:51:40.554+0000 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database. 2018-01-21T22:51:40.554+0000 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted. 2018-01-21T22:51:40.554+0000 I CONTROL [initandlisten] ** WARNING: You are running this process as the root user, which is not recommended. 2018-01-21T22:51:40.554+0000 I CONTROL [initandlisten] 2018-01-21T22:51:40.554+0000 I CONTROL [initandlisten] ** WARNING: This server is bound to localhost. 2018-01-21T22:51:40.554+0000 I CONTROL [initandlisten] ** Remote systems will be unable to connect to this server. 2018-01-21T22:51:40.554+0000 I CONTROL [initandlisten] ** Start the server with --bind_ip <address> to specify which IP 2018-01-21T22:51:40.554+0000 I CONTROL [initandlisten] ** addresses it should serve responses from, or with --bind_ip_all to 2018-01-21T22:51:40.554+0000 I CONTROL [initandlisten] ** bind to all interfaces. If this behavior is desired, start the 2018-01-21T22:51:40.554+0000 I CONTROL [initandlisten] ** server with --bind_ip 127.0.0.1 to disable this warning. 2018-01-21T22:51:40.555+0000 I CONTROL [initandlisten] 2018-01-21T22:51:40.555+0000 I CONTROL [initandlisten] 2018-01-21T22:51:40.555+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'. 2018-01-21T22:51:40.555+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never' 2018-01-21T22:51:40.555+0000 I CONTROL [initandlisten] 2018-01-21T22:53:51.735+0000 E - [main] Error loading history file: FileOpenFailed: Unable to fopen() file /root/.dbshell: No such file or directory > rs.initiate() { "info2" : "no configuration specified. Using a default configuration for the set", "me" : "localhost:27017", "ok" : 1, "operationTime" : Timestamp(1516575253, 1), "$clusterTime" : { "clusterTime" : Timestamp(1516575253, 1), "signature" : { "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="), "keyId" : NumberLong(0) } } } rs0:OTHER> rs.conf() { "_id" : "rs0", "version" : 1, "protocolVersion" : NumberLong(1), "members" : [ { "_id" : 0, "host" : "localhost:27017", Questions? Try the support group "arbiterOnly" : false, "buildIndexes" : true, "hidden" : false, "priority" : 1, "tags" : { }, "slaveDelay" : NumberLong(0), "votes" : 1 } ], "settings" : { "chainingAllowed" : true, "heartbeatIntervalMillis" : 2000, "heartbeatTimeoutSecs" : 10, "electionTimeoutMillis" : 10000, "catchUpTimeoutMillis" : -1, "catchUpTakeoverDelayMillis" : 30000, "getLastErrorModes" : { }, "getLastErrorDefaults" : { "w" : 1, "wtimeout" : 0 }, "replicaSetId" : ObjectId("5a651a150a90a676d7940383") } }
Ronald L. · Examiné il y a environ 8 ans
I followed all the steps, but when I connect to mongo-0 and initiate the replica set, the config only shows one member. It complains that there is no configuration. I'm going to try this lab again.
Ronald L. · Examiné il y a environ 8 ans
Atikom J. · Examiné il y a environ 8 ans
Would have loved an example of connecting to the MongoDB
Frank Z. · Examiné il y a environ 8 ans
Steven U. · Examiné il y a environ 8 ans
Laurent V. · Examiné il y a environ 8 ans
Laurent V. · Examiné il y a environ 8 ans
explanation was too light for the relationship between statefulset pvc and service and how the mongoDB works with everything. There is also no sample application that connects to mongoDB
Vince L. · Examiné il y a environ 8 ans
This was a really weak lab. 1) It needs a physical architectural diagram so that you can quickly understand how everything is laid out. 2) I was really confused about the network configuration and how IP addresses get assigned to the headless thingy. 3) what is the point of setting up a database and then not actually using it. I had 30 minutes left in the lab. Add content to do something with the database!
Louis H. · Examiné il y a environ 8 ans
Leandro L. · Examiné il y a environ 8 ans
Ankitkumar P. · Examiné il y a environ 8 ans
Nous ne pouvons pas certifier que les avis publiés proviennent de consommateurs qui ont acheté ou utilisé les produits. Les avis ne sont pas vérifiés par Google.