1
0
Fork 0

Initial commit.

This commit is contained in:
Sergio Talens-Oliag 2025-05-11 19:56:07 +02:00
commit 840bd2e12a
Signed by: sto
GPG key ID: 821AEE0FD167FBDF
10 changed files with 322 additions and 0 deletions

30
bin/install-vcluster-apps.sh Executable file
View 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