Persist second IP on suse microOS #866
-
I use a floating IP (manually managed) assigned to some hetzner node. Then configure the IP to the interface with:
The interface shows two IPs, I can ssh into the node using the floating IP, ingress is also working on that node. But sometimes (after some minutes) the eth0 device is loosing the second IP. To avoid this I created this eth0 config
It has no effect. Since SUSE MicroOS switched from This file does not seem to be responsible for networking. When I change some IP and do a
How to properly configure a second IP for the If it is true that terraform-hcloud-kube-hetzner/agents.tf Line 174 in 7281c7e Can someone shed some light please? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
@sebastianlutter I believed we discussed the subject already recently. We do support floating-ips on agent-nodepools. However, if you want to see how this is done, have a look at our cloud-init templates. |
Beta Was this translation helpful? Give feedback.
-
I created a bug report here: #866 Closing the discussion since I answered my own question. Discussion about the floating_ip and how to get it persistent in the current implementation can be done in the bug report |
Beta Was this translation helpful? Give feedback.
An approach that works is using NetworkManager dispatcher scripts. I created
/etc/NetworkManager/dispatcher.d/90-add-floating-ip.sh
:Then
chmod a+x /etc/NetworkManager/dispatcher.d/90-add-floating-ip.sh
, reboot the node and everything is fine: