add flannel conf and better drain command

This commit is contained in:
ducoterra
2020-08-22 15:56:50 -04:00
parent 013ada7e7b
commit 181e061866
2 changed files with 19 additions and 9 deletions

View File

@@ -8,7 +8,7 @@ boot_cmd:
run_cmd:
- "ip addr add 6.0.22.1/24 dev eth0"
- "ip link set dev eth0 up"
- "ip link set dev eth0 mtu 9000"
- "ip link set dev eth0 mtu 9014"
k3os:
k3s_args:
- server
@@ -18,4 +18,14 @@ k3os:
- "local-storage"
ntp_servers:
- 0.us.pool.ntp.org
- 1.us.pool.ntp.org
- 1.us.pool.ntp.org
write_files:
- encoding: ""
content: |-
FLANNEL_NETWORK=10.42.0.0/16
FLANNEL_SUBNET=10.42.0.1/24
FLANNEL_MTU=9014
FLANNEL_IPMASQ=true
owner: root
path: /var/run/flannel/subnet.env
permissions: '0655'