-
Notifications
You must be signed in to change notification settings - Fork 15
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
Changing SKE NodePool from eu01-1 -> eu01-m fails #384
Comments
Hey Robert, Thank you for reporting this issue and in general for being active in doing so! I'll be investigating this problem and will provide an update soon. |
Hey @roberth1988, I have looked into it and it seems to be a case for adding a RequiresReplace modifier to the attribute. Unless I'm missing something, I don't think we can replace the individual NodePool with the SKE API, so we would need to replace the entire cluster. I will create a PR for this today, but if you have more information on the Node Pool replacement please reach out! |
Hi @DiogoFerrao I don't think replacing the whole cluster is the way. Please check out for example Azure Terraform / AKS. They have a
So they rotate the Node-Pool. That's something you could do too ... or by default add a suffix on the node pool name(s) Replacing the cluster in such a case is a too huge interruption. |
You have a good point there and thank you for the suggestion. I have looked at the implementation in the Azure provider, and it seems that it will work with SKE as well. In general, it has some issues:
I tend to agree that having this is better than throwing an error, as long as its properly documented and warnings are shown. We will investigate this further and work on a solution for the problem. In the meantime, I think we can temporarily replace the entire cluster with the plan modifier, which at least allows users to perform this operation. Once we implement the Node Pool rotation we would remove this. |
Hi @DiogoFerrao you break even more when replacing the whole cluster when we think about volumes. So replacing on a NodePool change the whole cluster is even more harmful in the way of how Kubernetes should work. |
I completely agree @roberth1988, I was suggesting implementing a stop gap solution while we plan the implementation of your recomendation in our backlog. However, you raised important concerns about this temporary approach, so we will leave it with the error for the time being and report back to this issue when we move to implement a better solution, following your suggestion. |
How to reproduce:
Create SKE-Cluster, change NodePool availability_zone
eu01-1
and change it toeu01-m
. You will get an error:changing the order of AvailabilityZones it not allowed
Expected behaviour:
The text was updated successfully, but these errors were encountered: