-
Notifications
You must be signed in to change notification settings - Fork 6
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
✨ Add hetzner baremetal cluster stack #125
Conversation
Signed-off-by: Roman Hros <roman.hros@dnation.cloud>
Signed-off-by: Roman Hros <roman.hros@dnation.cloud>
Signed-off-by: Roman Hros <roman.hros@dnation.cloud>
Signed-off-by: Roman Hros <roman.hros@dnation.cloud>
Hi @janiskemper. As discussed in the chat, I added you as the reviewer because you are an expert on Hetzner. This is the first version of pure Hetzner baremetal clusterstack(control plane and worker nodes in robot, loadbalancer in the hcloud). The manifests are mostly taken from CAPH(without machine health checks and remediation(missing namespace defaulting kubernetes-sigs/cluster-api#10805)), but I read that it is only for demonstration purposes. Maybe we can collaborate here, and tune this cluster stack by removing/adding/editing kubeadm settings or cluster variables, playing with cluster addons(e.g. cilium values are taken from CAPH, and CCM from syself/charts) and so on. Thanks |
Thanks @chess-knight ! One thing you can maybe look at: The CCM we use still mainly is our fork under the syself organization. However, hetzner supports bare metal in the upstream one as well for some time now. You need to configure it in a certain way, but I believe that there should be some documentation about it. If not, you can surely open an issue and ask for it. This might be a better option for SCS, since our fork usually lacks behind a bit ;) Otherwise, I would really advice you to integrate custom remediation and MHC. There are a lot of cases where a reboot of the machine fixes it already, especially with bare metal. |
Right now, the remediationTemplate cannot be added to the cluster stacks(clusterclass), because you need to know the namespace of HetznerBareMetalRemediationTemplate in advance. I fixed it upstream kubernetes-sigs/cluster-api#10843 but we have to wait for the merge and release. EDIT: Namespace defaulting for the remediationTemplate will be available in CAPI v1.8.x |
Signed-off-by: Roman Hros <roman.hros@dnation.cloud>
Signed-off-by: Roman Hros <roman.hros@dnation.cloud>
Signed-off-by: Roman Hros <roman.hros@dnation.cloud>
Hi @janiskemper, I tried to replace Syself's hccm with Hetzner's but one thing doesn't work out of the box. CAPH is setting providerID field |
There is a config I believe. Someone from Hetzner tried this out and uses it. But I don't know where to find it |
If I see correctly, everything is hardcoded:
Right now the only way I see is to manually change it for all hetznerbaremetalmachines with e.g. |
search for "prefixRobotLegacy" in the providerid.go. I just had a quick look at the links you provided |
Yeah I see, but it is there only for migration purposes and not used for the new nodes. Instead "prefixRobot" is used. |
I don't know, sorry. I know that they got it running, but I don't know how exactly it works. I haven't tried. You can open an issue I guess and ask for a short guide to use the hcloud ccm with CAPH bare metal |
Signed-off-by: Roman Hros <roman.hros@dnation.cloud>
Signed-off-by: Roman Hros <roman.hros@dnation.cloud>
Signed-off-by: Roman Hros <roman.hros@dnation.cloud>
Hi @janiskemper, can you recheck this PR, please? |
Signed-off-by: Roman Hros <roman.hros@dnation.cloud>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chess-knight I had a look at the changes. I have not tested it. But it looks good to me.
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #108
Special notes for your reviewer:
Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.
TODOs: