Skip to content
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

confusing hcloudmachinetemplate controller error when using k0s #1291

Closed
rgarcia opened this issue May 2, 2024 · 6 comments
Closed

confusing hcloudmachinetemplate controller error when using k0s #1291

rgarcia opened this issue May 2, 2024 · 6 comments

Comments

@rgarcia
Copy link

rgarcia commented May 2, 2024

/kind bug

What steps did you take and what happened:
Please see here: k0sproject/k0smotron#561

Basically I'm trying to run the basic k0s cluster-api + hetzner example from their docs and running into a lot of problems. I've tracked it down to the CAPH machinetemplate controller failing to create the machine template because it can't fetch the hcloud api key secret from the parent hetznercluster object... but that seems to be configured correctly, so I'm stumped.

What did you expect to happen:
A k0s cluster to spin up in hetzner.

Anything else you would like to add:

Environment:

  • cluster-api-provider-hetzner version: v1.0.0-beta.32
  • Kubernetes version: (use kubectl version) v1.29.3
  • OS (e.g. from /etc/os-release): mac os
@guettli
Copy link
Collaborator

guettli commented May 3, 2024

I never used k0s, but I use caph daily and it works fine.

Why do you use k0s? I don't know that project.

Have you tried using caph the normal way (start with the mgt cluster in a kind cluster, later you can move the mgt cluster into a wl cluster)?

@rgarcia
Copy link
Author

rgarcia commented May 3, 2024

Yes I am using caph the normal way daily as well! I'm using a regular old kubeadm cluster in Hetzner as my management cluster and have used it to create lots of clusters.

I'm now trying to make some extremely lightweight k0s clusters for users and so that put me down the path of trying to get caph to work with the k0s control plane provider. So any guidance on how to debug caph in this case would be greatly appreciated.

@guettli
Copy link
Collaborator

guettli commented May 3, 2024

If the secret can't be found, these things come to my mind:

Check the namespace.

Check rbacs via impersonating the service account.

@batistein
Copy link
Contributor

@rgarcia Were you able to solve it?

@rgarcia
Copy link
Author

rgarcia commented May 24, 2024

I gave up and switched back to the default control plane provider in CAPH (kubeadm). It's working fine for now. I do think it would be nice to get a lightweight control plane provider like k0s or k3s working, since Hetzner is often the place people go for super low-cost VMs. E.g. running a single node k0s cluster on a cax11 would be neat.

Thanks for checking in and feel free to close.

@guettli
Copy link
Collaborator

guettli commented Aug 15, 2024

thank you for your feedback. Feel free to open a new issue if something is not working or not easy to understand.

@guettli guettli closed this as completed Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants