Files
homelab/legacy/bin/install-argo.sh
T
2023-04-13 20:41:56 +00:00

33 lines
758 B
Bash
Executable File

#!/bin/bash
set -e
pushd k8s/argocd
helm dependency update
DEPLOYMENT=${1:-dev}
popd
helm install argocd k8s/argocd \
--namespace argocd \
--create-namespace \
--values k8s/argocd/values.yaml \
--values k8s/argocd/values-$DEPLOYMENT.yaml \
--set selfapp.sshkey="$(cat ~/.ssh/id_rsa)"
watch -n1 "kubectl -n argocd get all"
argocd login cd.argoproj.io --core
kubectl config set-context --current --namespace argocd
argocd admin initial-password
helm upgrade argocd k8s/argocd \
--namespace argocd \
--create-namespace \
--values k8s/argocd/values.yaml \
--values k8s/argocd/values-$DEPLOYMENT.yaml \
--set selfapp.enabled="true" \
--set selfapp.sshkey="$(cat ~/.ssh/id_rsa)"
argocd app sync argocd/argocd