This repo includes some helper scripts, Dockerfiles, and Kubernetes configurations to get a local ArgoCD set up with a local Git server for testing purposes in Rancher Desktop.
- Install Rancher Desktop
- Set up a Kubernetes cluster running on
containerd
- Create namespace in Kubernetes by running
kubectl create namespace argocd
- Build Git server image by running
nerdctl build . -t git-d -f ./Dockerfile.gitd --namespace k8s.io
- Install Git server in Kubernetes by running
kubectl apply -f ./git-server.yaml -n argocd
- Install ArgoCD by running
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
- Expose ports using Rancher Desktop
- Wait about 30 seconds to 1 minute for ArgoCD to get set up
- Configure ArgoCD and get admin password by running
ARGOCD_PORT=<argocd server exposed port> GIT_PORT=<git server exposed port> ./configure-argocd.sh