Skip to content

albertompe/argocd-declarative-template

Repository files navigation

argocd-declarative-template

Add the needed helm repo.

helm repo add argo-cd https://argoproj.github.io/argo-helm

Generate 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 argocd

Yo can get the generated password for the admin user:

./get-argocd-initial-password.sh

or patch the secret to set the password argocdadmin:

./patch-argocd-password.sh

Access 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-cd

When listing helm releases it should now show an empty list:

❯ helm list
NAME    NAMESPACE       REVISION        UPDATED STATUS  CHART   APP VERSION

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages