This directory contains an example Nomad job specification (example.nomad.hcl) that deploys a Redis cache service.
Before running the job, you can validate the syntax of the job file:
nomad job validate example.nomad.hclRun a plan to see what changes Nomad will make:
nomad job plan example.nomad.hclSubmit the job to your Nomad cluster:
nomad job run example.nomad.hclVerify the status of the job:
nomad job status exampleTo see the logs of the allocations:
nomad alloc logs <alloc-id>(Replace <alloc-id> with the actual allocation ID from the status command).
To stop and purge the job:
nomad job stop -purge example- Job Name:
example - Type:
service - Task Group:
cache - Task:
redis(usesredis:7Docker image) - Resources: 500 MHz CPU, 256 MB Memory
- Network: Exposes port 6379 (mapped to
dbport)