Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 667 Bytes

File metadata and controls

22 lines (15 loc) · 667 Bytes

Private Multi-Port Service

Expose two local HTTP backends through one Tailnet node using Tailscale Serve path routing:

  • / proxies to the app endpoint
  • /admin/ proxies to the admin endpoint

Both backend tasks bind to 127.0.0.1 inside the Nomad allocation.

Validate

nomad job validate examples/private-multi-port-service/private-multi-port-service.nomad.hcl

Run

nomad var put nomad/jobs/notailcar/example/secrets TS_AUTHKEY='<TAILSCALE_AUTH_KEY>'
nomad job plan examples/private-multi-port-service/private-multi-port-service.nomad.hcl
nomad job run examples/private-multi-port-service/private-multi-port-service.nomad.hcl