/kind feature
Describe the solution you'd like
I would like ClusterAPI Provider Hetzner to support ClusterAPI IPAM Provider.
Other bare-metal related infrastructure providers like ClusterAPI Provider Metal3 and ClusterAPI Provider VSphere have it.
I need it to assign private IPs to the Hetzner Bare Metal servers.
Anything else you would like to add:
We initially tried :
- running
Kea DHCP server in an HCloud server. And try using it to allocate private IPs to the Hetzner Bare Metal servers belonging to the same cluster.
But the problem is : the Kea DHCP server is running in a separate subnet. And Hetzner Bare Metal servers are running in a separate subnet : the VSwitch subnet. And I cannot put HCloud servers in the VSwitch subnet.
A solution is : to run a DHCP relay server in the first Hetzner Bare Metal server in the VSwitch subnet. But we didn't want to go that route and rather add support for ClusterAPI IPAM Provider.
The plan is to :
-
Create an IPAddressClaim resource in the preparing phase of the Hetzner Bare Metal host.
-
Wait for a private IP address to be assigned.
-
Then, we read that private IPv4 address and put stuff in the cloud-init data, so that the private IP address binds to the NIC of the server.
This is the part I've to look into. Since, the cloud-init data is getting generated by the Kubeadm bootstrap provider AFAIK.
Maybe I need to parse and add the extra data for binding the private IP. Or any better approach in your mind?
You can see my commit here.
/kind feature
Describe the solution you'd like
I would like
ClusterAPI Provider Hetznerto supportClusterAPI IPAM Provider.Other bare-metal related infrastructure providers like
ClusterAPI Provider Metal3andClusterAPI Provider VSpherehave it.I need it to assign
private IPs to the Hetzner Bare Metal servers.Anything else you would like to add:
We initially tried :
Kea DHCP serverin anHCloud server. And try using it to allocate private IPs to the Hetzner Bare Metal servers belonging to the same cluster.But the problem is : the Kea DHCP server is running in a separate subnet. And Hetzner Bare Metal servers are running in a separate subnet : the
VSwitch subnet. And I cannot put HCloud servers in the VSwitch subnet.A solution is : to run a DHCP relay server in the first Hetzner Bare Metal server in the VSwitch subnet. But we didn't want to go that route and rather add support for
ClusterAPI IPAM Provider.The plan is to :
Create an
IPAddressClaimresource in thepreparingphase of theHetzner Bare Metal host.Wait for a private IP address to be assigned.
Then, we read that private IPv4 address and put stuff in the
cloud-init data, so that the private IP address binds to the NIC of the server.