Skip to content

Scaling Node Pool via CLI Fails When No Nodes are Present in the Pool #449

@aakashnagpal4567

Description

@aakashnagpal4567

Description

When there is no node in the node pool in the cluster, when we scale that node pool using Civo CLI, it's giving the error.
This functionality is working fine in the UI.

Steps to Replicate

  1. Create a Civo Kubernetes cluster with two node pools
  2. Scale one of the node pools to zero using the UI
  3. Using the CLI, scale the nodes in the node pool from zero to the desired amount with this command:
    civo kubernetes node-pool scale CLUSTER_NAME NODEPOOL_ID -n <NUMBER_OF_NODES>

For example, i tried to scale the node in the node pool that is empty, it gives an error:

$ civo kubernetes node-pool scale node-test 76a32cac-60a3-4a69-999d-251fac214c10 -n 2
Please check if you are using the latest version of CLI and retry the command 
If you are still facing issues, please report it on our community slack or open a GitHub issue (https://github.com/civo/cli/issues) 
Error: Unable to find "76a32cac-60a3-4a69-999d-251fac214c10" node pool inside "node-test" cluster

For reference, I'm attaching a video here:

node-pool-issue.mp4

Acceptance Criteria

  • Scaling the node pool to the zero nodes using Civo CLI should work.
  • Civo CLI should be able to successfully scale a node pool with zero nodes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions