This is a simple guide to setup ArgoCD on a local K8s cluster.
-
kubectl create namespace argocd
-
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
-
Check the status of the pods
kubectl get pods -n argocd
kubectl port-forward svc/argocd-server -n argocd 8080:443
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d; echo
- https://argo-cd.readthedocs.io/en/stable/cli_installation/ - Install ArgoCD CLI
kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "LoadBalancer"}}'
kubectl get svc argocd-server -n argocd
argocd login localhost
- Login to ArgoCD CLIargocd account update-password
argocd cluster add docker-desktop
argocd app list
kubectl config set-context --current --namespace=argocd
- Add app from CLI -
argocd app create guestbook --repo https://github.com/argoproj/argocd-example-apps.git --path guestbook --dest-server https://kubernetes.default.svc --dest-namespace default
argocd app list
argocd app create guestbook --repo https://github.com/argoproj/argocd-example-apps.git --path guestbook --dest-server https://kubernetes.default.svc --dest-namespace default