Mirror with local changes from https://github.com/discordianfish/k3s-openwrt
Go to file
Johannes Ziemke 1f0bc10880 Add 1.27.4+k3s1 2023-09-04 14:56:43 +02:00
.circleci Add 0.3.0 2019-03-31 14:12:02 +02:00
files Add v1.20.2+k3s1 and logging wrapper 2021-02-01 18:20:34 +01:00
.gitignore Initial commit 2019-03-09 11:48:10 +01:00
ARCHS Initial commit 2019-03-09 11:48:10 +01:00
Makefile Add 1.27.4+k3s1 2023-09-04 14:56:43 +02:00
README.md Update README.md 2019-05-10 13:13:15 +02:00
VERSIONS Add 1.27.4+k3s1 2023-09-04 14:56:43 +02:00

README.md

k3s on OpenWrt

Makefile to generate OpenWrt .opkg packages from official k3s binaries.

Usage

This requires a custom kernel with support for various cgroup, namespaces, vxlan, cfs scheduler etc. See here for my openwrt config: https://github.com/5pi-home/openwrt/blob/master/config

Firewall

To allow the k3s' flannel bridge to access the internet, configure a interface for cni0 in uci:

/etc/config/network:

config interface 'k8s'
	option proto 'none'
	option ifname 'cni0'

/etc/config/firewall

config zone
        option name 'k8s'
        option input 'ACCEPT'
        option output 'ACCEPT'
        option forward 'ACCEPT'
        option network 'k8s'

Building

Run make to build the default version for x86_64. You can override ARCH and VERSION, e.g make ARCH=armhf. See ARCHS and VERSIONS files for available architectures and versions.