Files
homelab/bin/install-argo.sh
T
2023-03-13 22:39:19 +00:00

26 lines
528 B
Bash
Executable File

#!/bin/bash
set -e
pushd k8s/argocd
helm dependency update
popd
helm install argocd k8s/argocd \
--namespace argocd \
--create-namespace \
--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 \
--set selfapp.enabled="true" \
--set selfapp.sshkey="$(cat ~/.ssh/id_rsa)"