Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.33 KB

06-deploymongo.md

File metadata and controls

27 lines (19 loc) · 1.33 KB

Challenge 6: Deploy MongoDB to AKS

< Previous Challenge - Home - Next Challenge >

Introduction

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.

Description

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

Success Criteria

  1. MongoDB is installed and run in our cluster
  2. The mongo --version command can be run in a pod and shown to work.

Learning Resources