Running a MongoDB Database in Kubernetes with StatefulSetsIr al Laboratorio
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
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!
MongoDb rs.conf() showed only one ReplicaSet member, should there be a configuration argument to rs.initiate() that tells it tell create three? Since the lab doesn't really use the database it doesn't make a difference to the rest of the lab though.