Files
nomad/website/content/docs/commands/server/join.mdx
Aimee Ukasick dae496e427 Docs: SEO front matter description for search: commands section (#25175)
* Enhance front matter description for search

* acl section

* alloc section

* config section

* deployment section

* eval section

* job section

* license section

* namespace section

* node section

* node pool section

* operator section

* plugin section

* quota section

* recommendation section

* scaling section

* sentinel section

* server section

* service section

* setup section

* system section

* tls section

* var section

* volume section

* change reference to command reference

* Apply suggestions from code review

Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com>

---------

Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com>
2025-03-19 12:02:02 -05:00

46 lines
1.4 KiB
Plaintext

---
layout: docs
page_title: 'nomad server join command reference'
description: >
The `nomad server join` command joins the local server to one or more Nomad
servers.
---
# `nomad server join` command reference
The `server 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
```plaintext
nomad server 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.
Joining servers in different regions will [federate][] the regions. This assumes
that ACLs have been bootstrapped in the authoritative region. See [Configure for
multiple regions][] in the ACLs tutorial.
## General options
@include 'general_options_no_namespace.mdx'
## Examples
Join the local server to a remote server:
```shell-session
$ nomad server join 10.0.0.8:4648
Joined 1 servers successfully
```
[federate]: /nomad/tutorials/manage-clusters/federation
[Configure for multiple regions]: /nomad/tutorials/access-control/access-control-bootstrap#configure-for-multiple-regions