Kubefirst workshops.
k3d cluster create kubefirst-demo --agents "1" --agents-memory "4096m"
To simply install Argo CD, you can use kubectl
.
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
We 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/fharper/workshops/argocd/manifest
More information in their documentation, and in this issue.
Wait 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 argocd
Once everything is running, make Argo CD UI accessible locally.
kubectl -n argocd port-forward svc/argocd-server 8080:443
Get 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 argocd
Now you can open Argo CD UI. You browser will complain about HTTPS, proceed anyway.
open https://localhost:8080
You can also log into argocd
with the CLI
argocd login localhost:8080 --username admin --insecure
You can either deploy the registry using kubectl
using
kubectl apply -f https://raw.githubusercontent.com/fharper/workshops/main/argocd/sync-waves/registry/registry.yaml
You can also use argocd
if you prefer
argocd app create -f https://raw.githubusercontent.com/fharper/workshops/main/argocd/sync-waves/registry/registry.yaml
Watch the glory of sync waves :)