44 lines
1.2 KiB
Bash
44 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()
|
|
{
|
|
echo "Installing secret..."
|
|
kubectl apply -f 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
|
|
}
|
|
|
|
Bootstrap
|