feature: Gets Ubuntu autoinstall working.
This commit is contained in:
parent
eb1dc99389
commit
61ccbf61d6
23 changed files with 357 additions and 523 deletions
9
serverinfra/base-scripts/role.server.sh
Executable file
9
serverinfra/base-scripts/role.server.sh
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
sudo apt update
|
||||
sudo apt install -y avahi-daemon curl
|
||||
|
||||
ufw allow 6443/tcp
|
||||
ufw allow from 10.42.0.0/16 to any
|
||||
ufw allow from 10.43.0.0/16 to any
|
||||
|
||||
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="server --server https://$UPSTREAM_HOSTNAME:6443 --token $K3S_TOKEN --disable servicelb" sh -s -
|
Reference in a new issue