CloudAcademy

Using Mesos DNS for Service Discovery in DC/OS

The hands-on lab is part of this learning path

Introduction to DC/OS

course-steps 2 lab-steps 10

Lab Steps

keyboard_tab
lock
Logging in to the Amazon Web Services Console
lock
Understanding the DC/OS Cluster Architecture
lock
Connecting to the Virtual Machine using SSH with Agent Forwarding
lock
Installing the DC/OS CLI on Linux
lock
Discovering a Marathon Application with Mesos DNS
lock
Discovering a Marathon Application with the Mesos DNS REST API
lock
Discovering Marathon Applications with Multiple Instances

Ready for the real environment experience?

DifficultyIntermediate
Duration50m
Students32

Description

Lab Overview

In DC/OS, Mesos DNS provides service discovery facilities for applications and services to find each other via the domain name system (DNS) and a REST API. Mesos DNS is a DC/OS component that runs on master nodes in the cluster. Whenever applications are deployed in the cluster, Mesos DNS records for application instances are automatically created. This Lab takes you through using Mesos DNS for service discovery in DC/OS.

Lab Objectives

Upon completion of this Lab you will be able to:

  • Discover applications by issuing DNS lookup requests to Mesos DNS
  • Discover applications by issuing HTTP requests to Mesos DNS REST API

Lab Prerequisites

You should be familiar with:

  • Basic DC/OS concepts including master nodes, agents, services, tasks, and Marathon
  • Working at the command-line in Linux
  • AWS services knowledge is useful in order to understand the architecture of the pre-created DC/OS cluster, but not required

Lab Environment

Before completing the Lab instructions, the environment will look as follows:

After completing the Lab instructions, the environment should look similar to:

About the Author

Students7061
Labs59
Courses3
Learning paths2

Logan has been involved in software development and research for over eleven years, including six years in the cloud. He is an AWS Certified DevOps Engineer - Professional, MCSE: Cloud Platform and Infrastructure, and Certified Kubernetes Administrator (CKA). He earned his Ph.D. studying design automation and enjoys all things tech.