terraform-hcloud-kube-hetzner/templates/server.tpl

44 lines
959 B
Smarty
Raw Normal View History

2021-12-03 02:11:52 +01:00
ssh_authorized_keys:
- ${ssh_public_key}
hostname: ${name}
boot_cmd:
- |
echo 'auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet dhcp' > /etc/network/interfaces
- rc-update del connman boot
- rc-update add networking boot
- rc-update add ntpd default
run_cmd:
- sh -c "ip route add 10.0.0.0/16 via 10.0.0.1 dev eth1"
k3os:
k3s_args:
- server
- "--server"
- "https://${master_ip}:6443"
- "--disable-cloud-controller"
2021-12-05 10:50:51 +01:00
- "--disable-network-policy"
2021-12-03 02:11:52 +01:00
- "--disable=traefik"
- "--disable=servicelb"
- "--disable=local-storage"
- "--flannel-iface=eth1"
- "--node-ip"
- "${node_ip}"
- "--advertise-address"
- "${node_ip}"
- "--tls-san"
- "${node_ip}"
- "--kubelet-arg"
- "cloud-provider=external"
2021-12-05 10:50:51 +01:00
- "--node-label"
- "k3os.io/upgrade=latest"
2021-12-03 02:11:52 +01:00
token: ${k3s_token}
ntp_servers:
- 0.de.pool.ntp.org
- 1.de.pool.ntp.org
dns_nameservers:
- 8.8.8.8
- 1.1.1.1
- 2001:4860:4860::8888
- 2606:4700:4700::1111