Deploying your microservice to Mesos using Marathon

Now that we have a fully functional Mesos cluster with the Marathon framework, we are ready to spin off new tasks (or Docker containers) on Marathon. In this recipe, we will deploy our Dockerized geolocation microservice on Marathon.

Getting ready

Before you start, make sure your Mesos cluster is up and running. You can do this by executing the docker ps -a command. You should see four containers running: Mesos master, Mesos slave, Marathon, and Zookeeper:

Getting ready

Sometimes, it is possible that either the Mesos master or slave, or even the Marathon container, might go down. This usually happens when it ...

Get Microservices Deployment Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.