Moving cluster config files from one directory to another (same cluster, same configs, just different path) #4053
Unanswered
AnchorArray
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hello, any ideas on how to achieve this these days ? Or how did you do it ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The documentation How can I safely move resources from one dir to another? states:
Some additional background we deploy our product in multiple environments and support single-tenant deployments where we deploy a dedicated infrastructure in a dedicated cloud provider account for each single-tenant customer. We have these in the same repository as we have a
stable
directory that includes the base configurations for all single tenants and use overlays to override the tenant specific configurations. This allows us to release new versions of our application by updating just thestable
directory.All of our existing environments are organized near the top level of the repository. But, we want to nest all of our existing AWS accounts under an
aws
directory, and leave space forgcp
andazure
sub-directories in the future as these different clouds will have slightly different configurations.The documentation around
mov[ing] resources from one dir to another
feels like it's geared more toward moving resources from one "Flux Kustomization" (presumably the kustomization that stores the path within the repo that is synced with the cluster) to another. In this scenario, its still the same cluster, we're just changing the path.The initial strategy we proposed was:
environments/integration/devops
we'll create a copy of the contents of this directory to/environments/integration/aws/devops
(updating any path references) so that both exist at the same time but cluster won't be syncing with/environments/integration/aws/devops
yet.flux bootstrap
with the new--path
argument to point to the new/environments/integration/aws/devops
directory with identical content from the previous path.I guess the primary question is if the documentation referenced above applies to the task that we are tackling, i.e. setting
prune
tofalse
, or would the initial strategy outlined above be sufficient if it's the same configs for the same cluster, just changing the--path
when runningflux bootstrap
?Thanks in advance!!
Beta Was this translation helpful? Give feedback.
All reactions