Remove specific cp node from nodepool #1348
-
I have quite the disappointing situation that my first CP node has an IP address that is blacklisted by many cloud providers. So I would like to replace this node. Is there any good possibility to do that? The Can I delete the server in the Hetzner Console and will Terraform create a new one on next apply? @mysticaltech would that work, or will it just create chaos? Or do I really need to create separate node pools with count=1 for all control plane nodes, to get some control over it? I'm using metallb without a load balancer, which makes replacing all the nodes quite cumbersome, because I need to update a lot of DNS zones. And I'm not running dedicated CP nodes, I don't really see the point of running 3 CP nodes additionally to 3 worker nodes. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@andi0b Two things, if you are suffering from the containers getting a 403 on pulling, there is a fresh and efficient solution for this. See the pinned discussion on the matter. That's a problem of the past now while this mitigation is installed, as it will pull directly through other working nodes. Now if you prefer to still replace the ip, just make sure you are in HA, so at least 3 CP nodes, drain it, and cordon it, then with the hcloud cli or ui, delete it. Then create a static ip to capture temporarily the sick IP and then terraform apply to recreate the node with the new IP. That works well from my previous testing and is the whole purpose of having an HA setup. But as said above, if it's to solve container pulls, it's no longer needed. |
Beta Was this translation helpful? Give feedback.
@andi0b Two things, if you are suffering from the containers getting a 403 on pulling, there is a fresh and efficient solution for this. See the pinned discussion on the matter. That's a problem of the past now while this mitigation is installed, as it will pull directly through other working nodes.
Now if you prefer to still replace the ip, just make sure you are in HA, so at least 3 CP nodes, drain it, and cordon it, then with the hcloud cli or ui, delete it. Then create a static ip to capture temporarily the sick IP and then terraform apply to recreate the node with the new IP. That works well from my previous testing and is the whole purpose of having an HA setup. But as said above, i…