Set up a Nomad cluster on Hetzner. This repo is based off of HashiCorp's Cluster Setup tutorials but adapted for Hetzner.
These instructions are adapted from HashiCorp's aforementioned tutorials, which contain more detailed instructions explanations.
mv variables.hcl.example variables.hcl- Update the
regionvariable invariables.hcl packer init image.pkr.hclpacker build image.pkr.hcl -var-file=variables.hcl- Update the
snapshot_imageandnetwork_zonevariables (snapshot_imageshould be the output of the Packer build) terraform initterraform apply -var-file=variables.hcl./post-setup.shexport NOMAD_ADDR=$(terraform output -raw lb_address_consul_nomad):4646 && export NOMAD_TOKEN=$(cat nomad.token)