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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.