Creating a Consul Cluster

30 minutes
  • 4 Learning Objectives

About this Hands-on Lab

In this hands-on lab, you will be tasked with creating a small cluster on the three provided Consul servers. Consul will be installed on all the provided servers, but will need to be configured. You will need to configure the first server as a Consul Server agent. You will then need to configure the other two servers as Consul agents that are clients of the Consul Server agent.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Log In to the Provided Servers
  1. Log in to the server using the credentials provided.
Configure the Consul Agent on consul-server0 to Be the Server Agent for the Cluster
  1. Change the configuraton of the consul-server0 server to be in server mode.
  2. Restart the server if required.
Configure the Consul Agents on the Two Other Servers to Auto-Join the Cluster On consul-server0
  1. Change the agent configuraton of the consul-client0 and the consul-client1 server to be a part of the provided cluster.
  2. Ensure that auto-join is configured and enabled.
  3. Restart the server(s) if required.
Verify the Cluster Is Working and There Are Now Two Client Nodes
  1. Verify that the cluster has one server member and two client nodes.

Additional Resources

You have been provided with three servers that have the Consul agent installed on them. The agent has been set to start automatically on a system boot.

The agents are all set up as a default standalone configuration, but you have been tasked by management with putting them all into a cluster in the dc1 data center.

The servers have the following details:

  • consul-server0.mylabserver.com 10.0.0.100
  • consul-server1.mylabserver.com 10.0.0.101
  • consul-server2.mylabserver.com 10.0.0.102

You need to modify their configuration files so that they all are in the same cluster and they can all see each other and they are in the dc1 data center.

Since there are three servers, each of the servers should have bootstrap_expect=3 in their configuration files.

The configuration folder where the configuration file is located is /etc/consul.d.

The end result is a command such as consul members should show all three server agents running in the dc1 data center.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


$2,495.00

Checkout
Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!