k3d cluster create gitops-demo --agents "1" --agents-memory "4096m"Install Argo CD:
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yamlWe suggest that you use our customization to bring back the app of apps sync wave Argo CD feature that was removed in 1.8. You can do this using that command
kubectl apply -k https://github.com/moabukar/gitops-demo/argocd/manifestWait for the pod to run: it should go fast, but give it a couple of seconds or minutes depending on your computer. You can check the status with
kubectl get pods -n argocdOnce everything is running, make Argo CD UI accessible locally.
kubectl -n argocd port-forward svc/argocd-server 8086:443Get the admin password:
# Using kubectl
kubectl get secret argocd-initial-admin-secret -n argocd -o jsonpath={".data.password"} | base64 -d
# Using argocd (Argo CD CLI)
argocd admin initial-password -n argocdNow you can open Argo CD UI. You browser will complain about HTTPS, proceed anyway.
open https://localhost:8080You can also log into argocd with the CLI
argocd login localhost:8080 --username admin --insecureYou can either deploy the registry using kubectl using
kubectl apply -f https://raw.githubusercontent.com/moabukar/gitops-demo/main/argocd/sync-waves/registry/registry.yamlkubectl apply -f https://raw.githubusercontent.com/moabukar/gitops-demo/main/apps/registry.yamlYou can also use argocd if you prefer
argocd app create -f https://raw.githubusercontent.com/moabukar/gitops-demo/main/argocd/sync-waves/registry/registry.yaml