< Previous Challenge - Home - Next Challenge >
At your daily standup, you heard that your developers will be refactoring the application to V2, and are going to need to store data in MongoDB.
In this challenge we'll be installing MongoDB into our cluster.
- Create a manifest for MongoDB. Use the official MongoDB container image from https://hub.docker.com/_/mongo
- MongoDB is a database, and thus rather than using a Deployment, it's best to use a Stateful Set object to deploy it to Kubernetes.
- 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.