Best practices for syncPolicy for CI/CD #6114
Replies: 2 comments 1 reply
-
I tend for favor the second option if you want an end-to-end view. You can easily fix the single con by creating a CI pipeline that monitors the deployments repo and runs "argo sync" when ANY change happens. This way all deployments are automated regardless of the change (source code or config code change). |
Beta Was this translation helpful? Give feedback.
-
I agree that Option 2 is probably easier to get an end-to-end view, although it seems at this point you are more doing regular CI/CD than taking full advantage of what GitOps has to offer. Especially, since you are not taking advantage of the selfHeal capability. Also, I am guessing you have to allow network traffic between your CI agent and your Argocd instance (for I think having |
Beta Was this translation helpful? Give feedback.
-
Hey folks. I was wondering what are the best practices for setting
syncPolicy.automated
when it comes to CI/CD for in-house developed services? I have two options in mind:Option 1 - automated = true
If we do this, the CI/CD pipeline looks something like this:
image.tag
in deployments repo (triggers sync)Pros:
Cons:
Option 1 - automated = false
CI/CD becomes something like this:
image.tag
in deployments repoargocd app sync
and waitPros:
Cons:
What are your thoughts and best practices?
Beta Was this translation helpful? Give feedback.
All reactions