Running a MongoDB Database in Kubernetes with StatefulSets
How to deploy a Kubernetes cluster, a headless service, and a StatefulSet.
How to connect a Kubernetes cluster to a MongoDB replica set.
How to scale MongoDB replica set instances up and down.