Skip to content

Commit

Permalink
feat(k8s): add scaledown unneeded time (#880)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Apr 21, 2020
1 parent de7b34e commit 562dcd4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ ARGS:
[autoscaler-config.ignore-daemonsets-utilization] Ignore DaemonSet pods when calculating resource utilization for scaling down
[autoscaler-config.balance-similar-node-groups] Detect similar node groups and balance the number of nodes between them
[autoscaler-config.expendable-pods-priority-cutoff] Pods with priority below cutoff will be expendable
[autoscaler-config.scale-down-unneeded-time] How long a node should be unneeded before it is eligible for scale down
[auto-upgrade.enable] Whether or not auto upgrade is enabled for the cluster
[auto-upgrade.maintenance-window.start-hour] The start hour of the 2-hour maintenance window
[auto-upgrade.maintenance-window.day] The day of the week for the maintenance window (any | monday | tuesday | wednesday | thursday | friday | saturday | sunday)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ ARGS:
[autoscaler-config.ignore-daemonsets-utilization] Ignore DaemonSet pods when calculating resource utilization for scaling down
[autoscaler-config.balance-similar-node-groups] Detect similar node groups and balance the number of nodes between them
[autoscaler-config.expendable-pods-priority-cutoff] Pods with priority below cutoff will be expendable
[autoscaler-config.scale-down-unneeded-time] How long a node should be unneeded before it is eligible for scale down
[enable-dashboard] The new value of the Kubernetes Dashboard enablement
[ingress] The new Ingress Controller for the cluster (unknown_ingress | none | nginx | traefik)
[auto-upgrade.enable] Whether or not auto upgrade is enabled for the cluster
Expand Down
12 changes: 12 additions & 0 deletions internal/namespaces/k8s/v1/k8s_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,12 @@ func k8sClusterCreate() *core.Command {
Required: false,
Positional: false,
},
{
Name: "autoscaler-config.scale-down-unneeded-time",
Short: `How long a node should be unneeded before it is eligible for scale down`,
Required: false,
Positional: false,
},
{
Name: "auto-upgrade.enable",
Short: `Whether or not auto upgrade is enabled for the cluster`,
Expand Down Expand Up @@ -531,6 +537,12 @@ func k8sClusterUpdate() *core.Command {
Required: false,
Positional: false,
},
{
Name: "autoscaler-config.scale-down-unneeded-time",
Short: `How long a node should be unneeded before it is eligible for scale down`,
Required: false,
Positional: false,
},
{
Name: "enable-dashboard",
Short: `The new value of the Kubernetes Dashboard enablement`,
Expand Down

0 comments on commit 562dcd4

Please sign in to comment.