Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 877 Bytes

06-deploymongo.md

File metadata and controls

21 lines (14 loc) · 877 Bytes

Challenge 6: Deploy MongoDB to AKS

< Previous Challenge - Home - Next Challenge >

Introduction

We are going to need MongoDB for v2 of our application and we'll be running it in our Kubernetes cluster.

Description

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

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.