[OpenWrt-Devel] Running k3s on OpenWrt
Yousong Zhou
yszhou4tech at gmail.com
Wed Nov 27 22:33:13 EST 2019
Hi list,
I am sending this email in case it's also interesting to someone in
the community, and to also avoid it bit rotting in my repo [1]
A few months ago, I started working on bringing up k3s on OpenWrt. I
managed to have a small k8s cluster with nodes running centos and
openwrt. Likely other linux distros will also do, but I didn't test
combination of different architectures yet.
K3s is on its own a k8s distribution. It provides a single packaged
binary for amd64, arm64, armhf. If I understand it right, the binary
is supposed to be as userland-dependency-free as possible, with
dependencies only on the kernel.
One thing worth noting is that the openwrt package is NOT official,
neither from OpenWrt nor k3s upstream project. It packages binary
executables distributed by k3s upstream project which is generally
frowned upon if sources are available.
The other thing is that k3s (or k8s) requires quite a few kernel
features to run, some of them only available as builtin (compared to
kmod). This means you will likely to build your own image to use it.
The required features as of k3s 1.0.0 are recorded as well and
available as a default off config symbol CONFIG_k3s_KERNEL [2]
[1] https://github.com/yousong/waller/tree/master/k3s
[2] https://github.com/yousong/waller/blob/c3ee00451ce12e869277bbd73b08652882c52010/k3s/Makefile#L69-L79
Happy hacking,
yousong
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list