Replies: 5 comments
-
Okay, so what I have figured out since posting this is that I can use an additional application in helm to create an app which looks at my root It looks like values.yaml for argocd-apps
I also got my repository connected automatically using a secret, instead of editing the configmap section since that was deprecated:
To bootstrap the cluster, I also had to install the two helm charts with my custom values. After this point, the applicationset correctly found my other folders and deployed the other services as expected.
One problem I am facing is that there are duplicate ArgoCD services running. One from my initial helm install, and another from the applicationset reading the repo directory. If I am doing anything incorrectly, or if there is a better approach, please let me know! |
Beta Was this translation helpful? Give feedback.
-
Have you seen how Argo CD Autopilot? Maybe it's something you are looking for because it generates Git repository that bootstraps / manages your applications and Argo CD. |
Beta Was this translation helpful? Give feedback.
-
Just gave it a shot. I couldn't find a way, even using a REPO_URL to a specific branch, to push the commits to the non-main branch though for my actual repo. Our setup is to only all merge requests into main and no direct commits. I created a test project and was able to set up argocd though quite easily. I think one issue is that it seems to use kustomize and a different structure than what I am familiar with from the argocd documentation (I have only used publicly available helm charts and configure values.yaml so far on my K8s journey) |
Beta Was this translation helpful? Give feedback.
-
I was able to get my apps set up from a dummy fresh repository and figured out how to use kustomize with helm charts. Really not too bad at all. I think this has been helpful in general to see how the applicationsets are formatted etc, thanks. I finally see how nice using the git file approach is with config.json versus the git directory approach. |
Beta Was this translation helpful? Give feedback.
-
Okay, great. autopilot was quite helpful actually. Seeing the folder structure and how kustomize works was enough to get me going, and now everything is running. Just in case this is helpful for anyone else, or in case I am doing something inefficient or bad, here is my directory structure with some of the applications removed just for the sake of simplicity. My
I am still using Helm charts for my apps to keeps things similar to how I am used to deploying with values.yaml. I am using the ksops tool for secret decryption, so now all of my secrets are decrypted and deployed automatically.
To do this, I am patching a few ArgoCD files in
I only need to run one command locally and it sets up my custom ArgoCD installation and kicks off all of my apps, including ArgoCD for self-management.
My
|
Beta Was this translation helpful? Give feedback.
-
My goal is to have ArgoCD manage itself, and to use Git Directory applicationset.
I am only able to get things to work if I install ArgoCD separately. Then I enter the web UI and add my repository. I can then create an application which points to my
root.yaml
file and it generates my applications, or I can run kubectl apply.I end up with duplicate argocd services if I do that though. What is the proper approach to bootstrap a cluster with an ApplicationSet?
root.yaml
My charts/argocd folder contains my custom values for ArgoCD. Disabling dex, creating a project, adding my repository credentials. This is one of the apps that root.yaml creates as it loops through each chart directory.
charts/argocd/Chart.yaml
Beta Was this translation helpful? Give feedback.
All reactions