-
Notifications
You must be signed in to change notification settings - Fork 123
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
microk8s compatibility #53
Comments
I would love for kilo to work on microk8s :) the fact that no error is printed but the node is never fully configured suggests to me that kilo cannot find correct IPs assigned to the node's interfaces so the node is never ready as far as kilo is concerned. Can you post the annotations on the node? I don't have an Ubuntu box to test microk8s on but I'll see if I can spin one up this week and test myself :) |
hi @carlosrmendes thanks a lot for that info, it's super helpful :) The
kubectl get nodes -o=jsonpath="{.items[*]['spec.podCIDR']}" |
yes, that is the problem... the nodes on microk8s don't have the podCIDR in their spec... :/ |
I think the podCIDR of the node is present in the
|
@squat take a look on: |
A bug identified by @carlosrmendes caused nodes to ignore the persistent-keepalive annotation. xref: #53 (comment) Signed-off-by: Lucas Servén Marín <lserven@gmail.com>
@carlosrmendes thanks for posting about the persistent-keepalive! That was indeed a bug. It's now fixed in master: e482983 |
perfect! thanks @squat 👌 |
yes, K8s still supports this today. I'm not sure what microk8s is doing, but pod CIDR allocation is turned on in the controller-manager by default on most kubernetes distributions. TAL at the controller-manager flags to enable this on microk8s |
I already test that flag on controller-manager and yes, the podCIDR was set, but is different from the flannel SUBNET assigned to the node 😥 |
That is quite weird. By default, Flannel actually requires the node.spec.podCIDR field to be set as well https://github.com/coreos/flannel/blob/master/subnet/kube/kube.go#L233-L235 |
It's possible that microk8s has configured flannel to use etcd as the data store instead of kubernetes, in which case the pod cidr will not be used or taken from the node object but rather saved in etcd. It looks like that configuration info can be found on disk: https://microk8s.io/docs/configuring-services#snapmicrok8sdaemon-flanneld |
yes, in microk8s flannel uses etcd, I tried with |
Hello @carlosrmendes , I needed to give
Maybe you need a similar config in microk8s so that flanel and the controller-manager uses the same CIDR. |
was this ever resolved ? |
Is this still in the roadmap? |
Is there a way to adapt the get started offered on the website to microk8s? |
Is in the roadmap the microk8s compatibility? Microk8s uses flannel as cni by default, I've tested on it but with no success.
Kilo pods starts well and no errors are printed in the logs (w/ log-level=all) but the
sudo wg
command don't show anything, no public key nor endpoint... and in the node thekilo.squat.ai/wireguard-ip
annotation shows no ip.Can you please take a look on microk8s? I think is interesting now that microk8s stable version has the clustering option. Thanks in advance.
The text was updated successfully, but these errors were encountered: