Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Remove a label from all nodes of the pool (only apply to labels which was set through scaleway api).

USAGE:
scw k8s pool remove-label <pool-id ...> [arg=value ...]

EXAMPLES:
Remove a label of a specific pool
scw k8s pool remove-label 11111111-1111-1111-1111-111111111111 key=foo

ARGS:
pool-id ID of the pool.
key Key of the label.
[region=fr-par] Region to target. If none is passed will use default region from the config

FLAGS:
-h, --help help for remove-label
--list-sub-commands List all subcommands

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
New nodes will not have this taint at startup (does not remove taints from kubernetes side).

USAGE:
scw k8s pool remove-startup-taint <pool-id ...> [arg=value ...]

EXAMPLES:
Remove a startup taint of a specific pool
scw k8s pool remove-startup-taint 11111111-1111-1111-1111-111111111111 key=foo

ARGS:
pool-id ID of the pool.
key Key of the taint.
[region=fr-par] Region to target. If none is passed will use default region from the config

FLAGS:
-h, --help help for remove-startup-taint
--list-sub-commands List all subcommands

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Remove a taint from all all nodes of the pool (only apply to taints which was set through scaleway api).

USAGE:
scw k8s pool remove-taint <pool-id ...> [arg=value ...]

EXAMPLES:
Remove a taint to a specific pool
scw k8s pool remove-taint 11111111-1111-1111-1111-111111111111 key=foo

ARGS:
pool-id ID of the pool.
key Key of the taint.
[region=fr-par] Region to target. If none is passed will use default region from the config

FLAGS:
-h, --help help for remove-taint
--list-sub-commands List all subcommands

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
29 changes: 29 additions & 0 deletions cmd/scw/testdata/test-all-usage-k8s-pool-set-label-usage.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Apply a label to all nodes of the pool which will be periodically reconciled by scaleway.

USAGE:
scw k8s pool set-label <pool-id ...> [arg=value ...]

EXAMPLES:
Apply a label to a specific pool
scw k8s pool set-label 11111111-1111-1111-1111-111111111111 key=foo value=bar

Apply a full label to a specific pool
scw k8s pool set-label 11111111-1111-1111-1111-111111111111 key=organization.example/gpu value=true

ARGS:
pool-id ID of the pool.
key Key of the label.
value Value of the label.
[region=fr-par] Region to target. If none is passed will use default region from the config

FLAGS:
-h, --help help for set-label
--list-sub-commands List all subcommands

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Apply a taint at node creation but does not reconcile after.

USAGE:
scw k8s pool set-startup-taint <pool-id ...> [arg=value ...]

EXAMPLES:
Apply a startup taint to a specific pool
scw k8s pool set-startup-taint 11111111-1111-1111-1111-111111111111 key=foo value=bar effect=NoSchedule

Apply a full startup taint to a specific pool
scw k8s pool set-startup-taint 11111111-1111-1111-1111-111111111111 key=organization.example/gpu value=true effect=NoSchedule

ARGS:
pool-id ID of the pool.
key Key of the taint.
value Value of the taint.
effect Effect of the taint. (NoSchedule | PreferNoSchedule | NoExecute)
[region=fr-par] Region to target. If none is passed will use default region from the config

FLAGS:
-h, --help help for set-startup-taint
--list-sub-commands List all subcommands

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
30 changes: 30 additions & 0 deletions cmd/scw/testdata/test-all-usage-k8s-pool-set-taint-usage.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Apply a taint to all nodes of the pool which will be periodically reconciled by scaleway.

USAGE:
scw k8s pool set-taint <pool-id ...> [arg=value ...]

EXAMPLES:
Apply a taint to a specific pool
scw k8s pool set-taint 11111111-1111-1111-1111-111111111111 key=foo value=bar effect=NoSchedule

Apply a full taint to a specific pool
scw k8s pool set-taint 11111111-1111-1111-1111-111111111111 key=organization.example/gpu value=true effect=NoSchedule

ARGS:
pool-id ID of the pool.
key Key of the taint.
value Value of the taint.
effect Effect of the taint. (NoSchedule | PreferNoSchedule | NoExecute)
[region=fr-par] Region to target. If none is passed will use default region from the config

FLAGS:
-h, --help help for set-taint
--list-sub-commands List all subcommands

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
26 changes: 18 additions & 8 deletions cmd/scw/testdata/test-all-usage-k8s-pool-usage.golden
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,26 @@ USAGE:
scw k8s pool <command>

AVAILABLE COMMANDS:
add-external-node Add an external node to a Kosmos Pool
create Create a new Pool in a Cluster
delete Delete a Pool in a Cluster
get Get a Pool in a Cluster
list List Pools in a Cluster
update Update a Pool in a Cluster
upgrade Upgrade a Pool in a Cluster
add-external-node Add an external node to a Kosmos Pool
create Create a new Pool in a Cluster
delete Delete a Pool in a Cluster
get Get a Pool in a Cluster
list List Pools in a Cluster
update Update a Pool in a Cluster
upgrade Upgrade a Pool in a Cluster

LABEL COMMANDS:
remove-label Remove a label from a Pool
set-label Apply a label to a Pool

TAINT COMMANDS:
remove-startup-taint Remove a startup taint from a Pool
remove-taint Remove a taint from a Pool
set-startup-taint Apply a startup taint to a Pool
set-taint Apply a taint to a Pool

WORKFLOW COMMANDS:
wait Wait for a pool to reach a stable state
wait Wait for a pool to reach a stable state

FLAGS:
-h, --help help for pool
Expand Down
Loading
Loading