Compare commits
3 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
2e69353029 | |
|
|
9de216c8c3 | |
|
|
94c7e6d2c9 |
|
|
@ -0,0 +1,14 @@
|
||||||
|
# k3s and Application Installer
|
||||||
|
|
||||||
|
Installs k3s and a application on target machine.
|
||||||
|
For now only application ```sock_shop``` is supported.
|
||||||
|
|
||||||
|
Usage:
|
||||||
|
```
|
||||||
|
./setup.sh -a sock_shop
|
||||||
|
```
|
||||||
|
|
||||||
|
Help:
|
||||||
|
```
|
||||||
|
./setup.sh -h
|
||||||
|
```
|
||||||
34
setup.sh
34
setup.sh
|
|
@ -96,6 +96,21 @@ while [ "$#" -gt 0 ]; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Validate app names
|
||||||
|
if [ -z "$app_name" ]; then
|
||||||
|
echo "Please specify app"
|
||||||
|
else
|
||||||
|
case $app_name in
|
||||||
|
"sock_shop")
|
||||||
|
echo "$app_name OK"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
show_allowed_apps
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if --helm was set
|
# Check if --helm was set
|
||||||
if [ "$helm_install" = true ]; then
|
if [ "$helm_install" = true ]; then
|
||||||
install_helm
|
install_helm
|
||||||
|
|
@ -104,23 +119,10 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Installing GIT"
|
echo "Installing GIT"
|
||||||
# install_git
|
install_git
|
||||||
|
|
||||||
echo "Installing K3S"
|
echo "Installing K3S"
|
||||||
# install_k3s
|
install_k3s
|
||||||
|
|
||||||
# Validate app names
|
echo "Installing $app_name"
|
||||||
if [ -z "$app_name" ]; then
|
|
||||||
echo "Please specify app"
|
|
||||||
else
|
|
||||||
case $app_name in
|
|
||||||
"sock_shop")
|
|
||||||
echo "Installing sock shop"
|
|
||||||
install_sock_shop
|
install_sock_shop
|
||||||
;;
|
|
||||||
*)
|
|
||||||
show_allowed_apps
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
Loading…
Reference in New Issue