Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(k8s): add scaledown unneeded time #880

Merged
merged 1 commit into from
Apr 21, 2020
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
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