How to change instance type for existing cluster? #455
-
I had a cluster created during v1 era. I now upgraded my cluster.yaml according to the v2 upgrade guide (https://github.com/vitobotta/hetzner-k3s/releases/tag/v2.0.0). Upgrading was successful, re-running My cluster has a single master node with |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You cannot change the instance type from the config file. hetzner-k3s won't automatically change the instance type in that case and there is a risk of ruining the cluster by doing that. Is your cluster still operational? The correct way is to just rescale the server from the Hetzner UI and leave the instance type untouched in the config file. Unfortunately adding the instance type to the instance name was an oversight in v1 since I hadn't thought about instance type changes. With v2, by default the instance type is no longer added to the instance name, so you can just rescale instances from the UI without any confusion. |
Beta Was this translation helpful? Give feedback.
-
@vitobotta Thanks for a quick answer. My original cluster still works, deleted the new one. Then I know, that instances should be scaled from the UI, not from the config. Is it the same with clusters created with v2? No worries about the API changes v1->v2, that's what major upgrades are for :) |
Beta Was this translation helpful? Give feedback.
You cannot change the instance type from the config file. hetzner-k3s won't automatically change the instance type in that case and there is a risk of ruining the cluster by doing that. Is your cluster still operational?
The correct way is to just rescale the server from the Hetzner UI and leave the instance type untouched in the config file. Unfortunately adding the instance type to the instance name was an oversight in v1 since I hadn't thought about instance type changes. With v2, by default the instance type is no longer added to the instance name, so you can just rescale instances from the UI without any confusion.