k3s
k3s copied to clipboard
Yocto support for k3s
It would be great if there were Yocto project recipes to allow us to incorporate k3s into Yocto project builds of Linux. Maybe someone has started work on this already?
Hi, There is some examples: https://github.com/HamburgChimps/minimal-k3s https://github.com/janeczku/meta-k3s
@Develoman the above two recipes do not work. We need to have the Linux kernel that supports all the features required by k3s. the recipe should take care of that. I have tried meta-k3s and it fails with
INFO[2020-09-05T02:27:52.975048835-04:00] Starting k3s agent v1.18.8+k3s1 (6b595318)
FATA[2020-09-05T02:27:53.031033091-04:00] open /proc/self/cgroup: no such file or directory
@acharaj This is normal if you have not configured your kernel for cgroups. You can use Dockers script to check your kernel compatibility using Dockers util https://github.com/moby/moby/blob/master/contrib/check-config.sh Then add the missing configuration into your kernel.
k3s is included in the meta-virtualization Yocto layer as of hardknott
does anyone have a comprehensive list of kernel flags needed for yocto ?
As far as we know, k3s should run fine on Yocto as long as the kernel is configured properly. We don't have any plans to add Yocto as an offically supported OS at this time, but if there are specific issues we can try and get them sorted, closing this out for now.