mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 01:45:44 +03:00
1.1 KiB
1.1 KiB
layout, page_title, sidebar_current, description
| layout | page_title | sidebar_current | description |
|---|---|---|---|
| docs | Commands: agent-join | docs-commands-agent-join | Joins the local server to one or more Nomad servers. |
Command: agent-join
The agent-join command joins the local server to one or more Nomad servers.
Joining is only required for server nodes, and only needs to succeed against
one or more of the provided addresses. Once joined, the gossip layer will
handle discovery of the other server nodes in the cluster.
Usage
nomad agent-join [options] <addr> [<addr>...]
One or more server addresses are required. If multiple server addresses are specified, then an attempt will be made to join each one. If one or more nodes are joined successfully, the exit code will be 0. Otherwise, the exit code will be 1.
General Options
-address: The address of the Nomad server. Overrides theNOMAD_ADDRenvironment variable if set. Defaults tohttp://127.0.0.1:4646.
Examples
Join the local server to a remote server:
$ nomad agent-join 10.0.0.8:4648
Joined 1 nodes successfully