Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

serverinstall/nomad: Automatically setup Consul service on install #2597

Merged
merged 10 commits into from
Nov 1, 2021

Conversation

briancain
Copy link
Member

Prior to this commit, the consul service integration was an optional
opt-in service that users could request when using the server install
helper CLI with Nomad. This commit changes that by instead setting up
the Consul service automatically, given how many Nomad workflows require
Consul for any kind of networking.

@briancain

This comment has been minimized.

Prior to this commit, the consul service integration was an optional
opt-in service that users could request when using the server install
helper CLI with Nomad. This commit changes that by instead setting up
the Consul service automatically, given how many Nomad workflows require
Consul for any kind of networking.
This commit updates the CLI install helper to always retry the server
connection before moving on. This gives the CLI some wiggle room for the
server to start up, along with any custom dns that might take a while to
get responsive.
This commit updates the Waypoint Nomad allocation to use a reserved port
rather than dynamic. That means we can always know the port even if the
allocation gets restarted for any reason.
internal/cli/install.go Outdated Show resolved Hide resolved
Give a hint as to why the CLI is failing to connect to the server
directly in the retry ui stepgroup
Copy link
Contributor

@mitchellh mitchellh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! We may want to update some docs somewhere to note Consul is required by default and how to use single-node Nomad instead (and the big WARNINGS with that).

@briancain
Copy link
Member Author

Sounds good, I think we're overdue for a proper waypoint install page along side the manual run a server docs so I think I'll do a followup PR today to cover that an include info about consul + nomad.

@briancain
Copy link
Member Author

Going to backport this, and when I fixup the server install docs, I'll be sure to include a note about server upgrades and the consul requirement change.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants