Skip to content

How to Deploy Same Helm Chart, Multiple Times, Into Different Namespaces #3139

Answered by matheuscscp
jseiser asked this question in Q&A
Discussion options

You must be logged in to vote

With flux-operator's ResourceSet you can achieve what you need:

https://fluxcd.control-plane.io/operator/resourcesets/app-definition/#multi-instance-example

If you add the following annotation to the Secret definition inside the ResourceSet resources you can copy it from some namespace:

        annotations:
          fluxcd.controlplane.io/copyFrom: "<secret namespace>/<secret name>"

In this case you won't create the original Secret with ResourceSet but rather just copy it into the other namespaces.

Here are the docs explaining how to copy image pull secrets across namespaces: https://fluxcd.control-plane.io/operator/resourceset/#copying-data-from-existing-configmaps-and-secrets

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@matheuscscp
Comment options

Answer selected by matheuscscp
@stefanprodan
Comment options

Comment options

You must be logged in to vote
2 replies
@matheuscscp
Comment options

@matheuscscp
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants