Configure the LKE autoscaler using the CLI

The Linode CLI currently doesn't expose the autoscaler switches using cluster create and node pool update. Is there a plan to allow configuration of the autoscaler using the CLI in the future?

EDIT: only the linode-cli lke pool-create command let you turn the autoscaler ON. The pool-update command does not expose the autoscaler switches so there's no way to turn the autoscaler OFF using the CLI.

1 Reply

Thanks for updating this post with your findings. What you just identified is a bug, which I've reported thanks to this post.

As our API/CLI documentation states, this should work:

https://techdocs.akamai.com/linode-api/reference/put-lke-node-pool

Here's the provided example:

linode-cli lke pool-update 12345 456 \
  --count 6 \

The autoscaler configuration is applied on node pools in a cluster, not the cluster itself. The thing is, right now, when you try to run that command via the CLI, it's stating that the expected arguments are "invalid arguments."

I can't say when this bug will be fixed. For the time being, you can use the API to do this:

curl -H "Content-Type: application/json" \
      -H "Authorization: Bearer $TOKEN" \
      -X PUT -d '{
        "count": 6
      }' \
      https://api.linode.com/v4/lke/clusters/12345/pools/456

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct