Skip to content

Commit 29a67bb

Browse files
authored
chore(k8s): remove legacy endpoint + refresh autoscaler docs (#5223)
1 parent 06df160 commit 29a67bb

File tree

6 files changed

+45
-45
lines changed

6 files changed

+45
-45
lines changed

cmd/scw/testdata/test-all-usage-k8s-cluster-create-usage.golden

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ ARGS:
3838
[pools.{index}.root-volume-size] System volume disk size
3939
[pools.{index}.public-ip-disabled] Defines if the public IP should be removed from Nodes. To use this feature, your Cluster must have an attached Private Network set up with a Public Gateway
4040
[pools.{index}.security-group-id] Security group ID in which all the nodes of the pool will be created. If unset, the pool will use default Kapsule security group in current zone
41-
[autoscaler-config.scale-down-disabled] Disable the cluster autoscaler
41+
[autoscaler-config.scale-down-disabled] Forbid cluster autoscaler to scale down the cluster, defaults to false
4242
[autoscaler-config.scale-down-delay-after-add] How long after scale up the scale down evaluation resumes
4343
[autoscaler-config.estimator] Type of resource estimator to be used in scale up (unknown_estimator | binpacking)
44-
[autoscaler-config.expander] Type of node group expander to be used in scale up (unknown_expander | random | most_pods | least_waste | priority | price)
45-
[autoscaler-config.ignore-daemonsets-utilization] Ignore DaemonSet pods when calculating resource utilization for scaling down
46-
[autoscaler-config.balance-similar-node-groups] Detect similar node groups and balance the number of nodes between them
44+
[autoscaler-config.expander] Kubernetes autoscaler strategy to fit pods into nodes, see https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-expanders for details (unknown_expander | random | most_pods | least_waste | priority | price)
45+
[autoscaler-config.ignore-daemonsets-utilization] Ignore DaemonSet pods when calculating resource utilization for scaling down, defaults to false
46+
[autoscaler-config.balance-similar-node-groups] Detect similar node groups and balance the number of nodes between them, defaults to false
4747
[autoscaler-config.expendable-pods-priority-cutoff] Pods with priority below cutoff will be expendable. They can be killed without any consideration during scale down and they won't cause scale up. Pods with null priority (PodPriority disabled) are non expendable
48-
[autoscaler-config.scale-down-unneeded-time] How long a node should be unneeded before it is eligible to be scaled down
49-
[autoscaler-config.scale-down-utilization-threshold] Node utilization level, defined as a sum of requested resources divided by capacity, below which a node can be considered for scale down
50-
[autoscaler-config.max-graceful-termination-sec] Maximum number of seconds the cluster autoscaler waits for pod termination when trying to scale down a node
48+
[autoscaler-config.scale-down-unneeded-time] How long a node should be unneeded before it is eligible for scale down, defaults to 10 minutes
49+
[autoscaler-config.scale-down-utilization-threshold] Node utilization level, defined as a sum of requested resources divided by allocatable capacity, below which a node can be considered for scale down
50+
[autoscaler-config.max-graceful-termination-sec] Maximum number of seconds the cluster autoscaler waits for pod termination when trying to scale down a node, defaults to 600 (10 minutes)
5151
[auto-upgrade.enable] Defines whether auto upgrade is enabled for the cluster
5252
[auto-upgrade.maintenance-window.start-hour] Start time of the two-hour maintenance window
5353
[auto-upgrade.maintenance-window.day] Day of the week for the maintenance window (any | monday | tuesday | wednesday | thursday | friday | saturday | sunday)

cmd/scw/testdata/test-all-usage-k8s-cluster-update-usage.golden

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ ARGS:
1717
[name] New external name for the cluster
1818
[description] New description for the cluster
1919
[tags.{index}] New tags associated with the cluster
20-
[autoscaler-config.scale-down-disabled] Disable the cluster autoscaler
20+
[autoscaler-config.scale-down-disabled] Forbid cluster autoscaler to scale down the cluster, defaults to false
2121
[autoscaler-config.scale-down-delay-after-add] How long after scale up the scale down evaluation resumes
2222
[autoscaler-config.estimator] Type of resource estimator to be used in scale up (unknown_estimator | binpacking)
23-
[autoscaler-config.expander] Type of node group expander to be used in scale up (unknown_expander | random | most_pods | least_waste | priority | price)
24-
[autoscaler-config.ignore-daemonsets-utilization] Ignore DaemonSet pods when calculating resource utilization for scaling down
25-
[autoscaler-config.balance-similar-node-groups] Detect similar node groups and balance the number of nodes between them
23+
[autoscaler-config.expander] Kubernetes autoscaler strategy to fit pods into nodes, see https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-expanders for details (unknown_expander | random | most_pods | least_waste | priority | price)
24+
[autoscaler-config.ignore-daemonsets-utilization] Ignore DaemonSet pods when calculating resource utilization for scaling down, defaults to false
25+
[autoscaler-config.balance-similar-node-groups] Detect similar node groups and balance the number of nodes between them, defaults to false
2626
[autoscaler-config.expendable-pods-priority-cutoff] Pods with priority below cutoff will be expendable. They can be killed without any consideration during scale down and they won't cause scale up. Pods with null priority (PodPriority disabled) are non expendable
27-
[autoscaler-config.scale-down-unneeded-time] How long a node should be unneeded before it is eligible to be scaled down
28-
[autoscaler-config.scale-down-utilization-threshold] Node utilization level, defined as a sum of requested resources divided by capacity, below which a node can be considered for scale down
29-
[autoscaler-config.max-graceful-termination-sec] Maximum number of seconds the cluster autoscaler waits for pod termination when trying to scale down a node
27+
[autoscaler-config.scale-down-unneeded-time] How long a node should be unneeded before it is eligible for scale down, defaults to 10 minutes
28+
[autoscaler-config.scale-down-utilization-threshold] Node utilization level, defined as a sum of requested resources divided by allocatable capacity, below which a node can be considered for scale down
29+
[autoscaler-config.max-graceful-termination-sec] Maximum number of seconds the cluster autoscaler waits for pod termination when trying to scale down a node, defaults to 600 (10 minutes)
3030
[auto-upgrade.enable] Defines whether auto upgrade is enabled for the cluster
3131
[auto-upgrade.maintenance-window.start-hour] Start time of the two-hour maintenance window
3232
[auto-upgrade.maintenance-window.day] Day of the week for the maintenance window (any | monday | tuesday | wednesday | thursday | friday | saturday | sunday)

docs/commands/k8s.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -184,16 +184,16 @@ scw k8s cluster create [arg=value ...]
184184
| pools.{index}.root-volume-size | | System volume disk size |
185185
| pools.{index}.public-ip-disabled | | Defines if the public IP should be removed from Nodes. To use this feature, your Cluster must have an attached Private Network set up with a Public Gateway |
186186
| pools.{index}.security-group-id | | Security group ID in which all the nodes of the pool will be created. If unset, the pool will use default Kapsule security group in current zone |
187-
| autoscaler-config.scale-down-disabled | | Disable the cluster autoscaler |
187+
| autoscaler-config.scale-down-disabled | | Forbid cluster autoscaler to scale down the cluster, defaults to false |
188188
| autoscaler-config.scale-down-delay-after-add | | How long after scale up the scale down evaluation resumes |
189189
| autoscaler-config.estimator | One of: `unknown_estimator`, `binpacking` | Type of resource estimator to be used in scale up |
190-
| autoscaler-config.expander | One of: `unknown_expander`, `random`, `most_pods`, `least_waste`, `priority`, `price` | Type of node group expander to be used in scale up |
191-
| autoscaler-config.ignore-daemonsets-utilization | | Ignore DaemonSet pods when calculating resource utilization for scaling down |
192-
| autoscaler-config.balance-similar-node-groups | | Detect similar node groups and balance the number of nodes between them |
190+
| autoscaler-config.expander | One of: `unknown_expander`, `random`, `most_pods`, `least_waste`, `priority`, `price` | Kubernetes autoscaler strategy to fit pods into nodes, see https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-expanders for details |
191+
| autoscaler-config.ignore-daemonsets-utilization | | Ignore DaemonSet pods when calculating resource utilization for scaling down, defaults to false |
192+
| autoscaler-config.balance-similar-node-groups | | Detect similar node groups and balance the number of nodes between them, defaults to false |
193193
| autoscaler-config.expendable-pods-priority-cutoff | | Pods with priority below cutoff will be expendable. They can be killed without any consideration during scale down and they won't cause scale up. Pods with null priority (PodPriority disabled) are non expendable |
194-
| autoscaler-config.scale-down-unneeded-time | | How long a node should be unneeded before it is eligible to be scaled down |
195-
| autoscaler-config.scale-down-utilization-threshold | | Node utilization level, defined as a sum of requested resources divided by capacity, below which a node can be considered for scale down |
196-
| autoscaler-config.max-graceful-termination-sec | | Maximum number of seconds the cluster autoscaler waits for pod termination when trying to scale down a node |
194+
| autoscaler-config.scale-down-unneeded-time | | How long a node should be unneeded before it is eligible for scale down, defaults to 10 minutes |
195+
| autoscaler-config.scale-down-utilization-threshold | | Node utilization level, defined as a sum of requested resources divided by allocatable capacity, below which a node can be considered for scale down |
196+
| autoscaler-config.max-graceful-termination-sec | | Maximum number of seconds the cluster autoscaler waits for pod termination when trying to scale down a node, defaults to 600 (10 minutes) |
197197
| auto-upgrade.enable | | Defines whether auto upgrade is enabled for the cluster |
198198
| auto-upgrade.maintenance-window.start-hour | | Start time of the two-hour maintenance window |
199199
| auto-upgrade.maintenance-window.day | One of: `any`, `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, `saturday`, `sunday` | Day of the week for the maintenance window |
@@ -483,16 +483,16 @@ scw k8s cluster update <cluster-id ...> [arg=value ...]
483483
| name | | New external name for the cluster |
484484
| description | | New description for the cluster |
485485
| tags.{index} | | New tags associated with the cluster |
486-
| autoscaler-config.scale-down-disabled | | Disable the cluster autoscaler |
486+
| autoscaler-config.scale-down-disabled | | Forbid cluster autoscaler to scale down the cluster, defaults to false |
487487
| autoscaler-config.scale-down-delay-after-add | | How long after scale up the scale down evaluation resumes |
488488
| autoscaler-config.estimator | One of: `unknown_estimator`, `binpacking` | Type of resource estimator to be used in scale up |
489-
| autoscaler-config.expander | One of: `unknown_expander`, `random`, `most_pods`, `least_waste`, `priority`, `price` | Type of node group expander to be used in scale up |
490-
| autoscaler-config.ignore-daemonsets-utilization | | Ignore DaemonSet pods when calculating resource utilization for scaling down |
491-
| autoscaler-config.balance-similar-node-groups | | Detect similar node groups and balance the number of nodes between them |
489+
| autoscaler-config.expander | One of: `unknown_expander`, `random`, `most_pods`, `least_waste`, `priority`, `price` | Kubernetes autoscaler strategy to fit pods into nodes, see https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-expanders for details |
490+
| autoscaler-config.ignore-daemonsets-utilization | | Ignore DaemonSet pods when calculating resource utilization for scaling down, defaults to false |
491+
| autoscaler-config.balance-similar-node-groups | | Detect similar node groups and balance the number of nodes between them, defaults to false |
492492
| autoscaler-config.expendable-pods-priority-cutoff | | Pods with priority below cutoff will be expendable. They can be killed without any consideration during scale down and they won't cause scale up. Pods with null priority (PodPriority disabled) are non expendable |
493-
| autoscaler-config.scale-down-unneeded-time | | How long a node should be unneeded before it is eligible to be scaled down |
494-
| autoscaler-config.scale-down-utilization-threshold | | Node utilization level, defined as a sum of requested resources divided by capacity, below which a node can be considered for scale down |
495-
| autoscaler-config.max-graceful-termination-sec | | Maximum number of seconds the cluster autoscaler waits for pod termination when trying to scale down a node |
493+
| autoscaler-config.scale-down-unneeded-time | | How long a node should be unneeded before it is eligible for scale down, defaults to 10 minutes |
494+
| autoscaler-config.scale-down-utilization-threshold | | Node utilization level, defined as a sum of requested resources divided by allocatable capacity, below which a node can be considered for scale down |
495+
| autoscaler-config.max-graceful-termination-sec | | Maximum number of seconds the cluster autoscaler waits for pod termination when trying to scale down a node, defaults to 600 (10 minutes) |
496496
| auto-upgrade.enable | | Defines whether auto upgrade is enabled for the cluster |
497497
| auto-upgrade.maintenance-window.start-hour | | Start time of the two-hour maintenance window |
498498
| auto-upgrade.maintenance-window.day | One of: `any`, `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, `saturday`, `sunday` | Day of the week for the maintenance window |

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ require (
2323
github.com/mattn/go-isatty v0.0.20
2424
github.com/moby/buildkit v0.26.2
2525
github.com/opencontainers/go-digest v1.0.0
26-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251202131048-1c7b2248aaba
26+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251209111654-44f4a1dfc432
2727
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
2828
github.com/spf13/cobra v1.10.2
2929
github.com/spf13/pflag v1.0.10

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,8 +464,8 @@ github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7
464464
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
465465
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
466466
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
467-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251202131048-1c7b2248aaba h1:uROS5GNQhplrMMeuuSHC47/Nztx4CWP07JoQMykzPxQ=
468-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251202131048-1c7b2248aaba/go.mod h1:h/elW4JdNo225GP5FZHJ/RPyCNz79lxaeub3PyGzE9o=
467+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251209111654-44f4a1dfc432 h1:9oVy2qHppTk7Yx3oKDMFkGhY3FKaHoXuBYJaFeJBjSA=
468+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251209111654-44f4a1dfc432/go.mod h1:LEsDu4BubxK7/cWhtlQWfuxwL4rf/2UEpxXz1o1EMtM=
469469
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
470470
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
471471
github.com/secure-systems-lab/go-securesystemslib v0.9.1 h1:nZZaNz4DiERIQguNy0cL5qTdn9lR8XKHf4RUyG1Sx3g=

0 commit comments

Comments
 (0)