_apps | ||
argocd | ||
.gitignore | ||
.sops.yaml | ||
README.md |
GitOps for tbrnt
Repo structure
- Each subdirectory is a namespace
_apps
is the meta directory for Argo CD apps
Usage
Argo CD
Access
Either
sudo -E kubefwd svc -n argocd
and then https://argocd-server/
or
kubectl port-forward svc/argocd-server -n argocd 8080:443
and
then https://localhost:8080/
CLI
argocd login argocd-server
argocd app list
argocd app sync <name>
Bootstrap GitOps
# install Argo CD
kubectl create ns argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
kubectl get pods -n argocd -l app.kubernetes.io/name=argocd-server -o name | cut -d'/' -f 2
argocd login argocd-server
# Instantiate Argo Root App
kubectl apply -f _apps/apps.yaml