-
Notifications
You must be signed in to change notification settings - Fork 331
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
Flux installation without CNI #1276
Comments
Installing Flux without a CNI is possible using a custom Deployment where all Flux controllers run inside the same pod and talk to each other over loopback. I've been experimenting with this here https://github.com/stefanprodan/flux-local-dev/tree/flux-xs/flux-xs |
Thanks for sharing @stefanprodan. This is an excellent idea. Is it possible to provide a leader election with your method? You disabled the leader election. 🤔 |
The idea is to use this at bootstrap, setup the CNI only, then get rid of it and deploy Flux the normal way. Hence this deployment doesn't need leader election because it's just a temporary workload. |
When the cilium is broken, the connectivity between controllers might get hurt, too, since a service-to-service connection might be needed for some components. This could happen if you replace the Kube-proxy with cilium. So, we want to keep FluxCD serviceable at all times. |
There are many tradeoff when running all Flux controllers in the same pod, for example you can't run them with least privileges: even if source-controller doesn't need cluster-admin you must run it like so for kustomize and helm controller to be able to install CRDs and the CNI. I'm considering creating an experimental Flux distribution for clusters without CNI but I'm not sure if the tradeoffs are acceptable. WDYT? |
@eminaktas can you please give this a try and let me know if it works on clusters without a CNI https://github.com/stefanprodan/flux-aio Thanks! |
As you mentioned before, it will be a short period. So I guess it shouldn't be a problem. I had a different approach. You can find my work here.
I will test it in our cluster setup. Thanks! |
Hi folks,
We wanted to share an idea with you. We have been working on the FluxCD to deploy without any CNI installed. At first look, it might be seen as a crazy idea, but the idea was to manage Cilium installation with FluxCD.
We could also install FluxCD after CNI and have it take over the installation, but this use case could be risky since if CNI is broken, FluxCD could be broken. So, we wanted to eliminate this risk.
We found the discussion here. We took as an example @maxpain's repository and extended it to overcome some problems since the deployment must be in the same node, and the HA structure couldn't be provided.
Steps we followed:
flux install
command, we generate the flux resources and save the output in a file.nginx-proxy
for notification and source controllers.We need your feedback and want to write the blog as a case study.
/cc @developer-guy @Dentrax @yasintahaerol @ugur99 @alialperak @dholbach
The text was updated successfully, but these errors were encountered: