I try to deploy the waypoint-examples app “nodejs” into a remote nomad cluster (hetzner cloud server). Although I can successfully install the waypoint server and runner on the nomad cluster, I can’t set the correct nomad remote address for the deployment.
waypoint up and waypoint deploy results in the following issue:
**» Building example-nodejs…**
Creating new buildpack-based image using builder: heroku/buildpacks:20
✓ Creating pack client
✓ Building image
│ [exporter] Reusing layer 'process-types'
│ [exporter] Adding label 'io.buildpacks.lifecycle.metadata'
│ [exporter] Adding label 'io.buildpacks.build.metadata'
│ [exporter] Adding label 'io.buildpacks.project.metadata'
│ [exporter] Setting default process type 'web'
│ [exporter] Saving example-nodejs...
│ [exporter] *** Images (86f6c6c42acb):
│ [exporter] example-nodejs
│ [exporter] Reusing cache layer 'heroku/nodejs-engine:nodejs'
│ [exporter] Reusing cache layer 'heroku/nodejs-engine:toolbox'
✓ Injecting entrypoint binary to image
Generated new Docker image: example-nodejs:latest
✓ Tagging Docker image: example-nodejs:latest => nodejs-example:1
✓ Docker image pushed: nodejs-example:1
**» Deploying example-nodejs…**
! 2 errors occurred:
* Get "http://127.0.0.1:4646/v1/job/example-nodejs-11fsj2w55g20za1q3vyaeqq19f":
dial tcp 127.0.0.1:4646: connect: connection refused
* Error during rollback: Delete "http://127.0.0.1:4646/v1/job/?purge=true":
dial tcp 127.0.0.1:4646: connect: connection refused
Instead of http://127.0.0.1:4646 it should be http://my-nomad-server.com:4646.
I set the nomad remote address in 2 different places:
- Local environment: echo $NOMAD_ADDR
http://my-nomad-server.com:4646
- When installing waypoint in nomad using the “-nomad-host” parameter:
waypoint install -platform=nomad -accept-tos -nomad-host-volume=waypointdata -nomad-host=http://my-nomad-server.com:4646 -nomad-consul-domain=my-nomad-server.com
What is the correct place to set the remote address for nomad? (In my case http://my-nomad-server.com:4646)