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

35 lines
738 B
Smarty
Raw Normal View History

2021-11-30 23:09:34 +01:00
ssh_authorized_keys:
- ${ssh_public_key}
hostname: ${name}
2021-12-03 02:11:52 +01:00
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"
2021-11-30 23:09:34 +01:00
k3os:
k3s_args:
2021-12-03 02:11:52 +01:00
- agent
- "--server"
- "https://${master_ip}:6443"
- "--node-ip"
- "${node_ip}"
- "--kubelet-arg"
- "cloud-provider=external"
- "--flannel-iface=eth1"
2021-12-05 10:50:51 +01:00
- "--node-label"
- "k3os.io/upgrade=latest"
2021-11-30 23:09:34 +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
2021-12-03 02:11:52 +01:00
- 2606:4700:4700::1111