hands-on lab

Using Mesos DNS for Service Discovery in DC/OS

Difficulty: Intermediate
Duration: Up to 50 minutes
Students: 59
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.

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:

Updates

August 1st, 2021 - Resolved an issue preventing the DC/OS cluster from provisioning

October 2nd, 2020 - Replaced CoreOS virtual machines (no longer available in AWS) with CentOS

January 10th, 2019 - Added a validation Lab Step to check the work you perform in the Lab

Covered topics

Hands-on Lab UUID

Lab steps

0 of 8 steps completed.Use arrow keys to navigate between steps. Press Enter to go to a step if available.
  1. Logging In to the Amazon Web Services Console
  2. Understanding the DC/OS Cluster Architecture
  3. Connecting to the DC/OS Cluster NAT Instance using SSH with Agent Forwarding
  4. Installing the DC/OS CLI on Linux
  5. Discovering a Marathon Application with Mesos DNS
  6. Discovering a Marathon Application with the Mesos DNS REST API
  7. Discovering Marathon Applications with Multiple Instances
  8. Validate AWS Lab