Initial commit.
This commit is contained in:
commit
840bd2e12a
10 changed files with 322 additions and 0 deletions
30
bin/install-vcluster-apps.sh
Executable file
30
bin/install-vcluster-apps.sh
Executable file
|
@ -0,0 +1,30 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
# Applications to install
|
||||
APPS="dummyhttp reloader"
|
||||
|
||||
# Relative PATH to the workdir from the script directory
|
||||
WORK_DIR_RELPATH="../apps"
|
||||
|
||||
# Compute WORKDIR
|
||||
SCRIPT="$(readlink -f "$0")"
|
||||
SCRIPT_DIR="$(dirname "$SCRIPT")"
|
||||
WORK_DIR="$(readlink -f "$SCRIPT_DIR/$WORK_DIR_RELPATH")"
|
||||
|
||||
# Update the PATH to add the arkade bin directory
|
||||
# Add the arkade binary directory to the path if missing
|
||||
case ":${PATH}:" in
|
||||
*:"${HOME}/.arkade/bin":*) ;;
|
||||
*) export PATH="${PATH}:${HOME}/.arkade/bin" ;;
|
||||
esac
|
||||
|
||||
# Go to the working directory
|
||||
cd "$WORK_DIR" || exit 1
|
||||
|
||||
for app in $APPS; do
|
||||
echo "=> Deploying the '$app' application"
|
||||
kustomize build "$app" | \
|
||||
KUBECONFIG=~/.kube/my-vcluster-config kubectl apply -f -
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue