41 lines
1000 B
Bash
41 lines
1000 B
Bash
#!/usr/bin/bash
|
|
|
|
sudo apt install -y lvm2 zsh cloud-utils xfsprogs jq hstr ufw
|
|
source <(curl -sk https://git.service.wiseadvice.eu/wiseadvice_public_repos/wa_public_init_repo/raw/branch/main/common_lib.sh)
|
|
|
|
mainmenu() {
|
|
echo -ne "
|
|
MAIN MENU
|
|
1) Install K8s
|
|
2) Install NFS Server
|
|
0) Exit
|
|
Choose an option: "
|
|
read -r ans
|
|
case $ans in
|
|
1)
|
|
echo "<=><=><=><=><=><=><=><=><=><=><=><=><=><=><=><=>"
|
|
echo "initializing K8s Master Set-Up"
|
|
source <(curl -sk https://git.service.wiseadvice.eu/wiseadvice_public_repos/wa_public_init_repo/raw/branch/main/initk8s.sh)
|
|
;;
|
|
2)
|
|
echo "<=><=><=><=><=><=><=><=><=><=><=><=><=><=><=><=>"
|
|
echo "initializing K8s Worker Set-Up"
|
|
source <(curl -sk https://git.service.wiseadvice.eu/wiseadvice_public_repos/wa_public_init_repo/raw/branch/main/init_nfs_server.sh)
|
|
;;
|
|
0)
|
|
echo "Bye bye."
|
|
exit 0
|
|
;;
|
|
*)
|
|
echo "Wrong option."
|
|
mainmenu
|
|
;;
|
|
esac
|
|
}
|
|
|
|
init_repos
|
|
mainmenu
|
|
|
|
|
|
|