Skip to content

Commit fbf420a

Browse files
committed
automate node joins
1 parent 8a9e5a6 commit fbf420a

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

docs/enterprise/embedded-manage-nodes.mdx

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ To create a multi-node HA cluster:
127127

128128
1. SSH onto a third node that you want to join to the cluster as a controller.
129129

130-
1. On the third node, run the join command provided in the Admin Console **Cluster Management** tab.
130+
1. On the third node, run the join command. You can get the join command in the Admin Console **Cluster Management** tab or by running `sudo ./APP_SLUG join print-command` on a node that was already joined to the cluster.
131131

132132
**Example:**
133133

@@ -152,4 +152,18 @@ To enable high availability for an existing Embedded Cluster installation with t
152152
sudo ./APP_SLUG enable-ha
153153
```
154154

155-
Where `APP_SLUG` is the unique slug for the application.
155+
Where `APP_SLUG` is the unique slug for the application.
156+
157+
## Get the `join` Command to Automate Node Joins
158+
159+
You can automate node joins with Embedded Cluster. This is especially useful when testing multi-node Embedded Cluster installations where you need to programmatically add nodes to the cluster.
160+
161+
To automate node joins, update your existing automation to do the following:
162+
163+
1. On a node that is already joined to the cluster, run the `sudo ./APP_SLUG join print-command` command to get the command for adding a node with the controller role.
164+
165+
1. Run the join command that was provided in the output of the `join print-command` on the node that you want to add to the cluster.
166+
167+
### Limitation
168+
169+
The `join print-command` command always returns the `join` command for joining a node with the controller role. The `join print-command` command does not supported printing the `join` command for any custom node roles defined in the Embedded Cluster Config `roles` key.

0 commit comments

Comments
 (0)