How to Deploy Same Helm Chart, Multiple Times, Into Different Namespaces #3139
-
We are building out a small cluster for a dev team. Ive been working through this repo: https://github.com/fluxcd/flux2-kustomize-helm-example The Now instead of
In Then in deploys/dev1 it would be great if we could include the base but have a way of overriding the So you would have namespaces This would allow us to only really have to override the ingress information, and the image tag for the app. Thanks for any information on this. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I am doing the same but image pull secret causing error while secret are present in each namespace Can you resolve my problem or need more info to understand please let me know |
Beta Was this translation helpful? Give feedback.
-
But I am creating secret using a single cmd got image pull secret and I am successfully able to use in one namespace but getting imagepullbackoff on another ns |
Beta Was this translation helpful? Give feedback.
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:
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