-
Notifications
You must be signed in to change notification settings - Fork 87
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
Scaling Node Pool via CLI Fails When No Nodes are Present in the Pool #449
Comments
@Praveen005 could it be you were on one region on the UI and in another on the CLI? |
@Praveen005 For this you need to create two node pools, please read the 1st point in "Steps to replicate". Currently, you can't scale the node pool to zero using CLI, it can only be done via the UI. We also have to add this functionality, if there are multiple node pools, we should be able to scale the node pool to zero, and also have to ensure that there should be at least one node in the cluster. |
Hi @fernando-villalba, You were right, it was a region mismatch. Thank you. @aakashnagpal4567 I could recreate the issue now. Thank you. |
Hi Sir, @fernando-villalba I wanted to update you on the issue, I worked on it, And here is the gist:
Currently, scaling up a node pool with zero nodes using CIVO CLI results in an error because we are searching for the node pool in cli/cmd/kubernetes/kubernetes_nodepool_scale.go Lines 53 to 64 in 8a5fa36
To fix this, we can look for the pool in This fix solves one part of the issue. I have tested it, and it works fine. Result: Initial state: one node pool with zero node Can't scale up using CLI: Post code changes: Node pool rightly getting scaled up: Change reflecting in UI: Up & Running: For the second part, Even when I pass two node-pools in which one clearly has an active node , as evident below: configKubernetes:
I am getting the following error: It needs to seen, how validation on the server side is happening. Regards! |
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
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:
For reference, I'm attaching a video here:
node-pool-issue.mp4
Acceptance Criteria
The text was updated successfully, but these errors were encountered: