is it possible and does it make sense to have one autopilot repo manage multiple argo installations (in different clusters)? #536
-
Quick context:
Question is if such an arrangement makes sense, and if it's possible while using the bootstrapping from autopilot. Thinking basically if one can have bootstrap/dev, bootstrap/staging and so subfolders, and similar for the apps folder. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
after installing an autopilot repo on two different clusters ( another option, which i think is not what you had in mind, is to set up the two autopilot repositories inside a single git repository. just under different paths. so run something like argocd-autopilot repo bootstrap --repo https://github.com/some-org/single-repo/path-a --context cluster-a to install it it in cluster-A, and then argocd-autopilot repo bootstrap --repo https://github.com/some-org/single-repo/path-b --context cluster-b to install in cluster-B. now you will have two different autopilot-managed clusters, using different paths inside the same repo. so technically this is what you asked for, but for almost any other purpose they are just as well in separate repositories. |
Beta Was this translation helpful? Give feedback.
after installing an autopilot repo on two different clusters (
cluster-A
andcluster-B
), using two different repositories (repo-A
andrepo-B
), it is possible to then go to theautopilot-bootstrap
application in one of those clusters (cluster-B
), and manually edit itsspec.source
fields to actually reference the other repository (repo-A
). after doing that - you will have two different clusters with identical resources (argo-cd + whatever other applications you have set up insiderepo-A
).repo-B
will not be used for anything at this point.i am not entirely sure what would be the use-case. but if you want two identical clusters set up that way - it should work.
another option, which i think is