This repository has been archived on 2025-05-04. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
kittehcluster/serverinfra/base-scripts/role.server-init.sh
2024-08-02 17:21:29 -04:00

9 lines
No EOL
283 B
Bash
Executable file

#!/usr/bin/env bash
sudo apt update
sudo apt install -y curl avahi-daemon
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 --cluster-init --token $K3S_TOKEN --disable servicelb" sh -s -