initial
This commit is contained in:
43
bootstrap.sh
Normal file
43
bootstrap.sh
Normal file
@@ -0,0 +1,43 @@
|
||||
#!/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 argocd-values.yaml \
|
||||
--timeout 60s --atomic
|
||||
}
|
||||
|
||||
Bootstrap
|
||||
Reference in New Issue
Block a user