- A Cloud Guru
Installing Nomad Server for Use in Dev Mode
If you want to use HashiCorp's Nomad in Development mode, there are a couple of ways to do this, and we will be covering one of these methods in this hands-on lab. In this hands-on lab, you will need to install Nomad and get it running on a single server in both Server and Client mode. You will need to make changes to ensure that a datacenter of `dc1` is being used.
Table of Contents
Log into the provided server.
You have been provided with a server. Log in to the server as the provided
cloud_userwith the provided password.
Add the correct repository for installing Nomad.
You will be installing Nomad by using the Red Hat repository that HashiCorp provides.
Use the appropriate commands to add the following repository to your server.
Install Nomad and configure it to run as the dc1 datacenter, then start it as a service.
Using appropriate system commands, install Nomad onto the server.
Once installed, you should make changes as required to the
/etc/nomad.d/nomad.hclfile to enable you to run jobs in the dc1 datacenter.
This will require changes to the Nomad configuration file.
Once the changes have been made, start the Nomad service and enable the nomad service to autostart on a system reboot.
Ensure that Nomad works and says it is in the dc1 datacenter.
Your Nomad should now be running.
You should do the following:
Use Nomad commands to show the server members. Should show one member.
Use Nomad commands to show any client nodes. Should show one member.
Note: It may take a minute or so before the Nomad nodes show up as expected.
It is not part of this lab, but your Nomad installation is now ready to run jobs if you choose.
What's a lab?
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.