k3s icon indicating copy to clipboard operation
k3s copied to clipboard

Yocto support for k3s

Open salerio-gs opened this issue 5 years ago • 5 comments
trafficstars

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?

salerio-gs avatar Feb 05 '20 16:02 salerio-gs

Hi, There is some examples: https://github.com/HamburgChimps/minimal-k3s https://github.com/janeczku/meta-k3s

Develoman avatar Apr 07 '20 08:04 Develoman

@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 avatar Sep 08 '20 08:09 acharaj

@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.

mfiumara avatar Jun 08 '21 09:06 mfiumara

k3s is included in the meta-virtualization Yocto layer as of hardknott

chris13524 avatar Sep 17 '21 16:09 chris13524

does anyone have a comprehensive list of kernel flags needed for yocto ?

jessequinn avatar Aug 19 '22 13:08 jessequinn

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.

cwayne18 avatar Feb 22 '23 15:02 cwayne18