Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Multi-worker pool

Run multiple Nomad allocations, each with its own Tailscale sidecar identity and unique hostname suffix based on NOMAD_ALLOC_INDEX.

flowchart TB
  subgraph Pool["Nomad task group count=3"]
    A0["alloc 0\nworker + tailscale"]
    A1["alloc 1\nworker + tailscale"]
    A2["alloc 2\nworker + tailscale"]
  end
  A0 --> Tailnet["Tailnet / exit node"]
  A1 --> Tailnet
  A2 --> Tailnet
Loading

Validate

nomad job validate examples/multi-worker-pool/multi-worker-pool.nomad.hcl

Scale

nomad job plan -var='worker_count=5' examples/multi-worker-pool/multi-worker-pool.nomad.hcl