Nomad UI is a browser-based interface for viewing and managing Nomad cluster workloads and resources. Open the Nomad server’s public IP on port 4646 to reach the jobs view. section 9.2.3
Use the interface to work through a basic job lifecycle:
- Open Jobs and choose Run Job. section 9.2.5
- Paste a Nomad HCL job definition, select Plan to preview the intended changes, then select Run. section 9.2.5
- Inspect job status and details while Nomad attempts to run the container image. section 9.2.5
- Select Stop Job and confirm; select Purge Job to remove the job completely. section 9.2.5
Run a container through Nomad UI
Open http://<nomad-server-public-ip-address>:4646/ui/, choose Jobs, select Run Job, and paste a definition containing a Docker task for the codingforentrepreneurs/rk8s-py image. Plan the job before running it, then inspect its details in the interface. section 9.2.5
Listing 9.8 Nomad job definition
job "a_unique_job_name" {
group "unique_group_per_job" {
task "unique_task_per_group" {
driver = "docker"
config {
image = "codingforentrepreneurs/rk8s-py"
}
}
}
}
Shows the compact HCL structure used when submitting a Docker container job through Nomad UI. section 9.2.5
