You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/enterprise/embedded-manage-nodes.mdx
+16-2Lines changed: 16 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,7 +127,7 @@ To create a multi-node HA cluster:
127
127
128
128
1. SSH onto a third node that you want to join to the cluster as a controller.
129
129
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.
131
131
132
132
**Example:**
133
133
@@ -152,4 +152,18 @@ To enable high availability for an existing Embedded Cluster installation with t
152
152
sudo ./APP_SLUG enable-ha
153
153
```
154
154
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