public-cloud-roadmap
public-cloud-roadmap copied to clipboard
MKS nodepool spec 'desiredNodes' should be optional
As a MKS user, i would like nodepool spec 'desiredNodes' to be optional.
Because in case of AutoScaling nodepool, each time i am doing a deployment, i need to specify a 'desiredNodes' values.
So by default my value is 1 (or the same as minNodes).
But in case of peak of activity on my cluster, nodepool desiredNodes could be high, i do not want to reset it to its default value when performing kubectl apply -f nodepool.yml
.
So this parameter should be optional. In case the value is missing on creation of the nodepool, the value should be set to the same as 'minNodes' value. In case the nodepool is already created, the current value should not be changed.
@mhurtrel do you think this could be easily and quickly delivered ?
Hi @matmicro I agree with your point and discussed with the team. We will amend this, but I can't give you and ETA yet.
We implemented a behavior like this:
If desired_nodes parameter is empty AND a desired_nodes value already exists --> we use the existing value If desired_nodes parameter is empty AND a there is no existing value --> we use min_nodes value If min_nodes parameter is specified AND desired_nodes parameter is empty AND actual desired_nodes is lower than min_nodes parameter --> desired_nodes is set with the new min_nodes value If max_nodes parameter is specified AND desired_nodes parameter is empty AND actual desired_nodes is upper than max_nodes parameter --> desired_nodes is set with the new max_nodes value If desired_nodes parameter is specified AND not between min_nodes and max_nodes --> forbidden
@jMonsinjon Great, that's perfect ! Thanks for such quickfix !
Could you please let me know once this will be live on GRA5 ? and others regions ?
I am currently facing error : ValidationError(NodePool.spec): missing required field "desiredNodes" in com.ovh.cloud.kube.v1alpha1.NodePool.spec
OK sorry @matmicro I reopened it. The Kubernetes custom resource definition is not yet up to date.
I will close this issue as soon as it has been done. It's our next priority ;-)
Can you share an ETA ? Thx
@matmicro We are currently working on it and we will deploy it as soon as possible. ETA: end of this week
The feature has been released and we upgraded all nodepools controllers. You can now use the OVHcloud API or your nodepool's custom resource.
It was working fine with Kubernetes 1.23 on GRA5.
But today it is not working with Kubernetes 1.24 on SBG5 :
error: error validating "k8s/nodepool_dev.yml": error validating data: ValidationError(NodePool.spec): missing required field "desiredNodes" in com.ovh.cloud.kube.v1alpha1.NodePool.spec;
Is it related to SBG or to Kubernetes version 1.24 ?
Could you fix this asap ?
Hello @matmicro Checking right now....
Hello @matmicro,
The issue is link to nodepool CRD deployment for kubernetes 1.24 which does not contain yet the change.
best,
Ok. Can you provide an ETA when this will be availabled with 1.24 ? Thanks
This is for ASAP, we have the fix, we have to run all test before release it
best,
hello @matmicro
we have just release the fix, you have to create a new cluster in 1.24 and it shall be ok
best,
Hi, I can't create a new cluster, i need to use a current one. I cannot plan to reset it on PROD, but i can for DEV/TEST purpose.
- What about reset the current cluster to 1.24 ? Fix will works ?
- And does it will work also when patching a cluster 1.23 to upgrade to 1.24 ?
Hi,
I can force a redeploy without loosing data for you, can you give me your cluster id ?
- yes reset a cluster will work but you will loose all your data
- yes upgrading from 1.23 to 1.24 will work
hi,
Redeploy was done in fact for you and the others, you can test now it shall work.
best
That's OK i could do it by myself with reset & upgrade. All is fine now, thanks