Add the needed helm repo.
helm repo add argo-cd https://argoproj.github.io/argo-helmGenerate Chart.lock file for our argo-cd chart.
helm dep update bootstraping/${env}/argo-cd/This will generate two files:
- Chart.lock
- bootstraping/${env}/argo-cd/charts/argo-cd-5.37.1.tgz
The tgz file is the downloaded dependency and no required in our code. Argo CD will download the dependencies based on the Chart.lock file.
We install Argo CD using our chart:
kubeclt create ns argocd
helm install argo-cd bootstraping/${env}/argo-cd --namespace argocdYo can get the generated password for the admin user:
./get-argocd-initial-password.shor patch the secret to set the password argocdadmin:
./patch-argocd-password.shAccess Argo CD web interface at https://${host_ip}:8080, using the admin username and the password.
Apply the root configuration to the environment:
helm template bootstraping/${env}/root | kubectl apply -f -This will create the application in Argo CD to manage itself. We can now let Helm know that it is not managing Argo CD anymore:
kubectl delete secret -l owner=helm,name=argo-cdWhen listing helm releases it should now show an empty list:
❯ helm list
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION