<div dir="auto">Nice one James. I've no experience with Kubernetes myself and I've not heard anyone else here talk about using it so I'm not sure we'd be much use with it.<div dir="auto"><br></div><div dir="auto"><span style="font-family:sans-serif">Glad you figured it out in the end.</span><br></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><span style="font-family:sans-serif">Ad</span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 14 Mar 2021, 18:14 James Courtier-Dutton via Wolves, <<a href="mailto:wolves@mailman.lug.org.uk">wolves@mailman.lug.org.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Kubernetes problems solved.<br>
Kubernetes 1.20.2 has bugs related to btrfs and will not work with btrfs.<br>
Kubernates 1.20.4 has fixed those bugs and it works fine with btrfs<br>
<br>
On Sun, 14 Mar 2021 at 11:14, James Courtier-Dutton<br>
<<a href="mailto:james.dutton@gmail.com" target="_blank" rel="noreferrer">james.dutton@gmail.com</a>> wrote:<br>
><br>
> Hi.<br>
><br>
> After further investigations.<br>
> microk8s version 1.20.2  is not compatible with btrfs.<br>
> My problem is btrfs specific:<br>
> 30>1 2021-03-14T10:03:03.965578+00:00 thread microk8s.daemon-kubelet<br>
> 33517 - -  F0314 10:03:03.965459   33517 kubelet.go:1350] Failed to<br>
> start ContainerManager failed to get rootfs info: failed to get device<br>
> for dir "/var/snap/microk8s/common/var/lib/kubelet": could not find<br>
> device with major: 0, minor: 29 in cached partitions map<br>
><br>
> Essentially, btrfs reports fs device major/minor number differently<br>
> from say ext4, and thus is not appearing in /proc/X/mountinfo<br>
> So, kubelet cannot find the mount point for a btrfs mount.<br>
><br>
> So, my advice to people is don't use btrfs with kubernetes for now.<br>
><br>
> Kind Regards<br>
><br>
> James<br>
><br>
><br>
><br>
> On Sat, 13 Mar 2021 at 17:46, James Courtier-Dutton<br>
> <<a href="mailto:james.dutton@gmail.com" target="_blank" rel="noreferrer">james.dutton@gmail.com</a>> wrote:<br>
> ><br>
> > Hi,<br>
> ><br>
> > I thought I would have a play with microk8s on a home pc.<br>
> > Suffice to say I have got nowhere fast.<br>
> > The initial install looked ok, but it failed to start the process that<br>
> > listens on port 16443. I fixed that with the command:<br>
> > microk8s disable ha-cluster<br>
> ><br>
> > Now it is complaining of disk problems. I.e. overlayfs not working.<br>
> > I have so far narrowed this down to overlayfs not being compatible with btrfs.<br>
> > Does anyone have any clues with regards to making microk8s play nicely<br>
> > with btrfs?<br>
> ><br>
> > It looks like containerd supports btrfs as it has a btrfs folder, but<br>
> > I cannot find any documentation that explains how to get it working.<br>
> ><br>
> > I am pleased that kubernetes is using just containerd now, instead of<br>
> > all of docker. So, at least kubernetes is getting a little less<br>
> > complex over time.<br>
> ><br>
> > Any help would be welcome.<br>
> ><br>
> > Kind Regards<br>
> ><br>
> > James<br>
<br>
-- <br>
Wolves LUG mailing list<br>
Homepage: <a href="http://www.wolveslug.org.uk/" rel="noreferrer noreferrer" target="_blank">http://www.wolveslug.org.uk/</a><br>
Mailing list: <a href="mailto:Wolves@mailman.lug.org.uk" target="_blank" rel="noreferrer">Wolves@mailman.lug.org.uk</a><br>
Mailing list home: <a href="https://mailman.lug.org.uk/mailman/listinfo/wolves" rel="noreferrer noreferrer" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/wolves</a></blockquote></div>