k0sproject / k0smotron

k0smotron
https://docs.k0smotron.io/
Other
420 stars 39 forks source link

How to join kubeadm compute-plane? #575

Open cwrau opened 1 month ago

cwrau commented 1 month ago

We're trying to run a k0smotron control-plane with a normal OpenStack cluster, see https://github.com/teutonet/teutonet-helm-charts/pull/962 for implementation, but the compute-plane can't join, getting 401 unauthorized from the API.

I thought maybe it's the missing cluster-info configmap and the missing RBAC for it, but I'm not quite sure and I also didn't want to just create the RBAC. I guess I just did something wrong 😅

The used values are the following;

cloud: ffm3-dev
version:
  major: 1
  minor: 28
  patch: 9
controlPlane:
  hosted: true
metadata:
  serviceLevelAgreement: None
  customerID: 6969
  customerName: cwr
nodePools:
  compute-plane-1:
    replicas: 2
    flavor: standard.2.1905

If needed I can also provide the templated yamls.

jnummelin commented 1 month ago

So do I get it right, you're using k0smotron managed controlplane and trying to create kubeadm workers?

That's unfortunately not going to work. kubeadm join ... on worker expects to find stuff that kubeadm init ... creates on control plane. Since k0smotron creates the control plane using k0s it will NOT have the expected kubeadm related bits set up.

cwrau commented 1 month ago

So do I get it right, you're using k0smotron managed controlplane and trying to create kubeadm workers?

That's unfortunately not going to work. kubeadm join ... on worker expects to find stuff that kubeadm init ... creates on control plane. Since k0smotron creates the control plane using k0s it will NOT have the expected kubeadm related bits set up.

Ah, ok, I kinda thought so 😅 Is there docs on how to add non-docker capi workers? Do I have to use the k0s bootstrap provider?