Mirror with local changes from https://github.com/discordianfish/k3s-openwrt
Go to file
Johannes 'fish' Ziemke f7c1e1175a Remove config
This overwrites user config.. Need to figure out how to properly handle
this.
2019-04-28 11:47:17 +02:00
.circleci Add 0.3.0 2019-03-31 14:12:02 +02:00
files/etc/init.d Remove config 2019-04-28 11:47:17 +02: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 0.4.0 2019-04-28 11:09:08 +02:00
README.md Update docs, bump version 2019-03-15 12:28:40 +01:00
VERSIONS Add 0.4.0 2019-04-28 11:09:08 +02:00

k3s on OpenWrt

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

Known Issues

Service IPs aren't working for some reason :(

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.