Files
launchpad/bootstrap.sh
Danijel Simeunovic 1af57ea5c1 bootstrap main app
2026-03-05 10:28:15 +01:00

47 lines
1.2 KiB
Bash

#!/bin/zsh
# in case of $'\r': command not found error, run command below first
# sed -i 's/\r$//' ./bootstrap.sh
echo "running $0..."
nsmon=monitoring
nsistio=istio-system
promport=80
helminit=0
############################################################
# Bootstrap #
############################################################
Bootstrap()
{
ArgoCd
Github
}
############################################################
# Github #
############################################################
Github()
{
echo "Installing secret..."
kubectl apply -f private/github.yaml
}
############################################################
# ArgoCd #
############################################################
ArgoCd()
{
# install argocd
echo "Installing ArgoCD..."
helm upgrade --install argocd argo-cd \
--repo https://argoproj.github.io/argo-helm \
--namespace argocd --create-namespace \
--values infra/values/argocd-values.yaml \
--timeout 60s --atomic
kubectl apply -f _app-of-apps.yaml -n argocd
}
Bootstrap