k3s-openwrt/README.md

33 lines
879 B
Markdown
Raw Permalink Normal View History

2019-03-09 10:48:10 +00:00
# k3s on OpenWrt
Makefile to generate OpenWrt .opkg packages from official k3s binaries.
## Usage
2019-03-09 11:44:36 +00:00
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
2019-03-15 11:28:40 +00:00
for cni0 in uci:
2019-03-09 11:44:36 +00:00
/etc/config/network:
```
config interface 'k8s'
option proto 'none'
2019-03-15 11:28:40 +00:00
option ifname 'cni0'
2019-03-09 11:44:36 +00:00
```
2019-03-15 11:28:40 +00:00
/etc/config/firewall
2019-03-09 11:44:36 +00:00
```
config zone
2019-03-15 11:28:40 +00:00
option name 'k8s'
2019-03-09 11:44:36 +00:00
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
2019-03-15 11:28:40 +00:00
option network 'k8s'
2019-03-09 11:44:36 +00:00
```
## Building
2019-03-09 10:48:10 +00:00
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.