example to deploy HA redis on nomad.
It contains two different replication monitoring systems, resec and sentinel
Example to show how to deploy these systems (either resec or sentinel) with nomad.
the setup uses levant for variable rendering, and optionally deploying.
- cd resec or cd sentinel
- fill in redis.yml
- NOMAD_TOKEN=... levant deploy -address=$NOMAD_ADDRESS -var-file redis.yml redis.nomad
the example uses ephemeral disk, which provides best effort persistence. It might be ok for some use cases, but for absolute data persistence, use host volumes or CSI. ref: https://learn.hashicorp.com/tutorials/nomad/stateful-workloads