< Previous Challenge - Home - Next Challenge >
We are going to need MongoDB for v2 of our application and we'll be running it in our Kubernetes cluster.
In this challenge we'll be installing MongoDB into our cluster.
- Deploy a MongoDB container in a pod for v2 of the FabMedical app. Use the official MongoDB container image from https://hub.docker.com/_/mongo
- Confirm it is running with:
kubectl exec -it <mongo pod name> -- mongo "--version"
- Hint: Follow the pattern you used in Challenge 4 and create a deployment and service YAML file for MongoDB.
- Hint: MongoDB runs on port 27017
- MongoDB is installed and run in our cluster
- The
mongo --version
command can be run in a pod and shown to work.