Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: More flexibility when applying charts to remote clusters #824

Open
mclarke47 opened this issue Nov 29, 2023 · 1 comment
Open

feat: More flexibility when applying charts to remote clusters #824

mclarke47 opened this issue Nov 29, 2023 · 1 comment

Comments

@mclarke47
Copy link

mclarke47 commented Nov 29, 2023

I am experimenting with flux but am concerned with the flexibility of applying to remote clusters.

I have a multi-tenant admin configuration cluster where my Flux objects live and a multi-tenant workload cluster where workloads actually run. I am currently deploying via a HelmRelease per remote workload cluster, and I create a kubeconfig secret to contain the credentials to apply to the remote cluster.

However, this isn't very easy since HelmReleases cant seem to reference secrets in another namespace. Therefore, I need to create multiple secrets for each helmrelease namespace which is pretty complicated. It would be great if the helm controller could:

  • Use Workload Identity like some of the other flux components for pulling OCI repositories (the Providerfield
  • Specify a central secret used to deploy to remote clusters

With guidance, I would be willing to submit a PR to add this feature.

@stefanprodan
Copy link
Member

I suggest using some controller that knows how to copy secrets between namespaces, for example: https://kyverno.io/policies/other/s-z/sync-secrets/sync-secrets/

When Kubernetes will allow a Deployment to refer to Secrets from another namespace, then we'll consider allowing it in Flux too. I doubt this will ever happen upstream as it break namespace isolation and RBAC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants