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

Add a guide for configuring Cilium in direct routing mode #18914

Open
joestringer opened this issue Feb 23, 2022 · 9 comments
Open

Add a guide for configuring Cilium in direct routing mode #18914

joestringer opened this issue Feb 23, 2022 · 9 comments
Labels
area/documentation Impacts the documentation, including textual changes, sphinx, or other doc generation code. help-wanted Please volunteer for this by adding yourself as an assignee! kind/feature This introduces new functionality. pinned These issues are not marked stale by our issue bot. sig/datapath Impacts bpf/ or low-level forwarding details, including map management and monitor messages.

Comments

@joestringer
Copy link
Member

joestringer commented Feb 23, 2022

We have getting started guides for various features and modes in Cilium, but no single clear guide on how to configure Cilium for direct routing. This is a documentation request for such a mode.

This probably involves providing different steps depending on whether nodes in the cluster are all directly connected via L2 (where --auto-direct-node-routes can help) vs. L3-connected, in which case perhaps the user needs to configure BGP or another route sharing mechanism.

@joestringer joestringer added help-wanted Please volunteer for this by adding yourself as an assignee! area/documentation Impacts the documentation, including textual changes, sphinx, or other doc generation code. kind/feature This introduces new functionality. labels Feb 23, 2022
@aledbf
Copy link

aledbf commented Mar 16, 2022

@joestringer is GCE using vpc-native (alias ip) in the direct routing mode scenarios?
(I am interesting in replicating the gke dataplane)

@joestringer
Copy link
Member Author

@aledbf For GKE environments, yes it uses direct routing. You can see the GKE tab on the main installation guide: https://docs.cilium.io/en/stable/gettingstarted/k8s-install-helm/

@aledbf
Copy link

aledbf commented Mar 16, 2022

@joestringer yes, but I can't use GKE :( just plain GCE VMs (and using k3s)

@joestringer
Copy link
Member Author

Based on this doc, I think it's possible: https://docs.cilium.io/en/stable/concepts/networking/routing/#google-cloud

It looks to me like even though the setting is marked as gke, if you use that setting in google cloud, it will still use the native google cloud networking layer. But I think that the best way to find out would be to try it. If you're running k3s, then it's also worth looking at which helm options are in the Cilium docs for installing on k3s and see which of those may be relevant to you.

@github-actions
Copy link

github-actions bot commented Jul 9, 2022

This issue has been automatically marked as stale because it has not
had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added stale The stale bot thinks this issue is old. Add "pinned" label to prevent this from becoming stale. and removed stale The stale bot thinks this issue is old. Add "pinned" label to prevent this from becoming stale. labels Jul 9, 2022
@Duanzhiwei
Copy link

I would like a guide to deploying cilium bgp mode on bare metal, but I don't know if it works and where I can get.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not
had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale The stale bot thinks this issue is old. Add "pinned" label to prevent this from becoming stale. label Oct 17, 2022
@joestringer joestringer added pinned These issues are not marked stale by our issue bot. and removed stale The stale bot thinks this issue is old. Add "pinned" label to prevent this from becoming stale. labels Oct 17, 2022
@damieneichhorn
Copy link

I would like a guide to deploying cilium bgp mode on bare metal, but I don't know if it works and where I can get.

Same here, possibly including dsr

@ti-mo
Copy link
Contributor

ti-mo commented Jun 22, 2023

Today, this page (https://docs.cilium.io/en/stable/network/concepts/routing/#native-routing) has some pointers for running on AWS ENI and self-managed GCP, so I think the original demand of this issue is covered.

For bare metal deployments, there isn't a written guide, but our perf benchmarking suite has automation code for Cilium 1.10 (https://docs.cilium.io/en/stable/operations/performance/benchmark/#how-to-reproduce) that could be used as inspiration. It's built on Packet.net machines.

I'm afraid even accounting for L2 vs. L3-connected clusters, there are so many variables in physical deployments that any bare metal guide is bound to omit many crucial details. Also, maintaining this sort of document will be expensive because of the need for automation and hardware availability. We tend to validate all our getting started guides on every major release.

@ti-mo ti-mo added the sig/datapath Impacts bpf/ or low-level forwarding details, including map management and monitor messages. label Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation Impacts the documentation, including textual changes, sphinx, or other doc generation code. help-wanted Please volunteer for this by adding yourself as an assignee! kind/feature This introduces new functionality. pinned These issues are not marked stale by our issue bot. sig/datapath Impacts bpf/ or low-level forwarding details, including map management and monitor messages.
Projects
None yet
Development

No branches or pull requests

5 participants