Mirror with local changes from https://github.com/discordianfish/k3s-openwrt
Go to file
Johannes 'fish' Ziemke 4ce9fcf921 Update README.md
2019-03-09 12:44:36 +01:00
.circleci Run make release in ci 2019-03-09 11:56:11 +01:00
files/etc Initial commit 2019-03-09 11:48:10 +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 Initial commit 2019-03-09 11:48:10 +01:00
README.md Update README.md 2019-03-09 12:44:36 +01:00
VERSIONS Initial commit 2019-03-09 11:48:10 +01:00

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 flannel.1 in uci:

/etc/config/network:

config interface 'k8s'
	option proto 'none'
	option ifname 'flannel.1'

..and assign it to the lan zone:

config zone
        option name 'lan'
        option input 'ACCEPT'
        option output 'ACCEPT'
        option forward 'ACCEPT'
        option network 'lan 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.