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

Support flux installation via helm chart #1641

Closed
tsahiduek opened this issue Jul 22, 2021 · 9 comments
Closed

Support flux installation via helm chart #1641

tsahiduek opened this issue Jul 22, 2021 · 9 comments
Labels
wontfix This will not be worked on

Comments

@tsahiduek
Copy link

Hi,
Is there any reason why flux2 doesn't have an helm chart to bootstrap itself to a cluster?
Using CLI tool is somewhat hard to use when managing the cluster/infra creation via IaC (like CDK in my case), whereas helm installation will be much easier to manage

Thanks

@tsahiduek tsahiduek changed the title Support flux installation vie helm chart Support flux installation via helm chart Jul 22, 2021
@kingdonb
Copy link
Member

Sorry for the inconvenience.

This has been explained in #1136, see also the discussion in #431

The short version is that Helm is not an ideal solution for deployment of CRDs, as it has limited support for upgrading them. Flux now leans heavily on the Custom Resource Definition feature for Kubernetes API extensibility, and this is a major pain point for us as the APIs are frequently being upgraded with a new release.

@kingdonb kingdonb added the wontfix This will not be worked on label Jul 22, 2021
@kingdonb
Copy link
Member

Though it is not a Helm chart, HTH - the Infrastructure as Code solution we recommend is our Terraform provider:

https://github.com/fluxcd/terraform-provider-flux

@tsahiduek
Copy link
Author

Have you considered support for CDK?

@squaricdot
Copy link

@kingdonb i thought i cought some discussion on slack that you made some way to use OLM to maintain the operator ?

@kingdonb
Copy link
Member

kingdonb commented Aug 2, 2021

There is an OLM method for installing Flux, yes:

https://operatorhub.io/operator/flux

I think it works best with OpenShift from what I have heard, although I use vanilla k8s. There are some issues I ran into using OLM standalone, (they should be filed separately, I haven't got around to it yet) but from what I understand I think these can mostly be overcome easily, when using OLM standalone + OpenShift Console. (I haven't quite got there yet myself, either...)

To be more specific,

Edit: To be a bit more specific, the kubectl operator krew plugin works fine with Flux, you just need to be sure you specify -n flux-system so the Flux operator is installed in the flux-system namespace. This works great and all outstanding issues are fixed for Flux 0.16.2.

It would be nice to update the docs to include this information, but it would be nicer still if we could get all regular modes of installing the operator to simply honor the suggestedNamespace directive though, so users don't have to find this note buried somewhere in a doc...

@stgrace
Copy link

stgrace commented Aug 17, 2021

I understand the difficulty of managing CRD's with Helm and not wanting to do that.
However, using the provided installation methods available now there is no way to customize RBAC for Flux components. By default cluster-admin privileges are bound to kustomize and helm controller, which is not allowed in a lot of production environments.
Ideally there would be a way to specify the privileges for each Flux component in an automated way, maintained by Flux itself.

@pierluigilenoci
Copy link

@stgrace I totally agree!

@stefanprodan
Copy link
Member

Ideally there would be a way to specify the privileges for each Flux component in an automated way, maintained by Flux itself.

Please take a look at: https://github.com/fluxcd/flux2-multi-tenancy

@stefanprodan
Copy link
Member

An unofficial Helm chart for flux is being developed here https://github.com/fluxcd-community/helm-charts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

6 participants