Skip to content

Commit 1d1038a

Browse files
committed
doc + goldens
1 parent de298fe commit 1d1038a

3 files changed

Lines changed: 58 additions & 7 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Add an external node to a Kosmos pool.
4+
This will connect via SSH to the node, download the multicloud configuration script and run it with sudo privileges.
5+
Keep in mind that your external node needs to have wget in order to download the script.
6+
7+
USAGE:
8+
scw k8s pool add-external-node [arg=value ...]
9+
10+
ARGS:
11+
node-ip IP address of the external node
12+
pool-id ID of the pool the node should be added to
13+
[username=root] Username used for the SSH connection
14+
[region=fr-par] Region to target. If none is passed will use default region from the config
15+
16+
FLAGS:
17+
-h, --help help for add-external-node
18+
19+
GLOBAL FLAGS:
20+
-c, --config string The path to the config file
21+
-D, --debug Enable debug mode
22+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
23+
-p, --profile string The config profile to use

cmd/scw/testdata/test-all-usage-k8s-pool-usage.golden

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,18 @@ USAGE:
77
scw k8s pool <command>
88

99
AVAILABLE COMMANDS:
10-
create Create a new Pool in a Cluster
11-
delete Delete a Pool in a Cluster
12-
get Get a Pool in a Cluster
13-
list List Pools in a Cluster
14-
update Update a Pool in a Cluster
15-
upgrade Upgrade a Pool in a Cluster
10+
create Create a new Pool in a Cluster
11+
delete Delete a Pool in a Cluster
12+
get Get a Pool in a Cluster
13+
list List Pools in a Cluster
14+
update Update a Pool in a Cluster
15+
upgrade Upgrade a Pool in a Cluster
16+
17+
UTILITY COMMANDS:
18+
add-external-node Add an external node to a Kosmos pool
1619

1720
WORKFLOW COMMANDS:
18-
wait Wait for a pool to reach a stable state
21+
wait Wait for a pool to reach a stable state
1922

2023
FLAGS:
2124
-h, --help help for pool

docs/commands/k8s.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ This API allows you to manage Kubernetes Kapsule and Kosmos clusters.
3434
- [Replace a Node in a Cluster](#replace-a-node-in-a-cluster)
3535
- [Wait for a node to reach a stable state](#wait-for-a-node-to-reach-a-stable-state)
3636
- [Kapsule pool management commands](#kapsule-pool-management-commands)
37+
- [Add an external node to a Kosmos pool](#add-an-external-node-to-a-kosmos-pool)
3738
- [Create a new Pool in a Cluster](#create-a-new-pool-in-a-cluster)
3839
- [Delete a Pool in a Cluster](#delete-a-pool-in-a-cluster)
3940
- [Get a Pool in a Cluster](#get-a-pool-in-a-cluster)
@@ -961,6 +962,30 @@ A pool is a set of identical nodes
961962
A pool has a name, a size (its desired number of nodes), node number limits (min, max), and a Scaleway Instance type. Changing those limits increases/decreases the size of a pool. As a result and depending on its load, the pool will grow or shrink within those limits when autoscaling is enabled.
962963

963964

965+
### Add an external node to a Kosmos pool
966+
967+
Add an external node to a Kosmos pool.
968+
This will connect via SSH to the node, download the multicloud configuration script and run it with sudo privileges.
969+
Keep in mind that your external node needs to have wget in order to download the script.
970+
971+
**Usage:**
972+
973+
```
974+
scw k8s pool add-external-node [arg=value ...]
975+
```
976+
977+
978+
**Args:**
979+
980+
| Name | | Description |
981+
|------|---|-------------|
982+
| node-ip | Required | IP address of the external node |
983+
| pool-id | Required | ID of the pool the node should be added to |
984+
| username | Default: `root` | Username used for the SSH connection |
985+
| region | Default: `fr-par` | Region to target. If none is passed will use default region from the config |
986+
987+
988+
964989
### Create a new Pool in a Cluster
965990

966991
Create a new pool in a specific Kubernetes cluster.

0 commit comments

Comments
 (0)