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

Improve podCIDR detection #2770

Merged
merged 2 commits into from
Sep 5, 2023

Conversation

sridhargaddam
Copy link
Member

@sridhargaddam sridhargaddam commented Aug 29, 2023

In K8s, each node is typically assigned a unique PodCIDR range for the pods that run on that node. Each node's PodCIDR is used to allocate IP addresses to the pods scheduled on that node. Only if the cluster is a single node deployment, we should rely on the node.Spec.PodCIDR as podCIDR of the cluster.

Related to: submariner-io/submariner#2128
Related to: submariner-io/submariner#2489
Signed-off-by: Sridhar Gaddam [email protected]

@submariner-bot
Copy link
Contributor

🤖 Created branch: z_pr2770/sridhargaddam/podcidr-discovery
🚀 Full E2E won't run until the "ready-to-test" label is applied. I will add it automatically once the PR has 2 approvals, or you can add it manually.

@sridhargaddam
Copy link
Member Author

sridhargaddam commented Sep 1, 2023

This fix is not only for generic clusters but also for calico clusters.

In K8s, each node is typically assigned a unique PodCIDR range for the
pods that run on that node. Each node's PodCIDR is used to allocate IP
addresses to the pods scheduled on that node. Only if the cluster is a
single node deployment, we should rely on the node.Spec.PodCIDR as
podCIDR of the cluster.

Related to: submariner-io/submariner#2128
Signed-off-by: Sridhar Gaddam <[email protected]>
@sridhargaddam sridhargaddam changed the title Improve podCIDR detection for generic clusters Improve podCIDR detection Sep 1, 2023
@submariner-bot submariner-bot added the ready-to-test When a PR is ready for full E2E testing label Sep 5, 2023
@sridhargaddam sridhargaddam enabled auto-merge (rebase) September 5, 2023 15:23
@sridhargaddam sridhargaddam merged commit ddeccee into submariner-io:devel Sep 5, 2023
36 of 37 checks passed
@submariner-bot
Copy link
Contributor

🤖 Closed branches: [z_pr2770/sridhargaddam/podcidr-discovery]

@dfarrell07
Copy link
Member

@sridhargaddam Do you think this should be backported?

@dfarrell07 dfarrell07 added the backport This change requires a backport to eligible release branches label Sep 12, 2023
@sridhargaddam
Copy link
Member Author

@sridhargaddam Do you think this should be backported?

Yes @dfarrell07, this will be useful for environments like K3s. I'll handle the backports.

@dfarrell07 dfarrell07 added the release-note-needed Should be mentioned in the release notes label Sep 19, 2023
sridhargaddam added a commit to sridhargaddam/submariner-website that referenced this pull request Sep 26, 2023
This PR includes release notes for
submariner-io/submariner-operator#2770

Signed-off-by: Sridhar Gaddam <[email protected]>
@sridhargaddam
Copy link
Member Author

Release note PR: submariner-io/submariner-website#1037

sridhargaddam added a commit to sridhargaddam/submariner-website that referenced this pull request Sep 26, 2023
This PR includes release notes for
submariner-io/submariner-operator#2770

Signed-off-by: Sridhar Gaddam <[email protected]>
sridhargaddam added a commit to submariner-io/submariner-website that referenced this pull request Sep 26, 2023
This PR includes release notes for
submariner-io/submariner-operator#2770

Signed-off-by: Sridhar Gaddam <[email protected]>
sridhargaddam added a commit to sridhargaddam/submariner-website that referenced this pull request Sep 26, 2023
This PR includes release notes for
submariner-io/submariner-operator#2770

Signed-off-by: Sridhar Gaddam <[email protected]>
tpantelis pushed a commit to submariner-io/submariner-website that referenced this pull request Sep 27, 2023
This PR includes release notes for
submariner-io/submariner-operator#2770

Signed-off-by: Sridhar Gaddam <[email protected]>
dfarrell07 pushed a commit to dfarrell07/submariner-website that referenced this pull request Oct 18, 2023
This PR includes release notes for
submariner-io/submariner-operator#2770

Signed-off-by: Sridhar Gaddam <[email protected]>
dfarrell07 pushed a commit to dfarrell07/submariner-website that referenced this pull request Oct 18, 2023
This PR includes release notes for
submariner-io/submariner-operator#2770

Signed-off-by: Sridhar Gaddam <[email protected]>
dfarrell07 pushed a commit to dfarrell07/submariner-website that referenced this pull request Oct 19, 2023
This PR includes release notes for
submariner-io/submariner-operator#2770

Signed-off-by: Sridhar Gaddam <[email protected]>
tpantelis pushed a commit to submariner-io/submariner-website that referenced this pull request Oct 22, 2023
This PR includes release notes for
submariner-io/submariner-operator#2770

Signed-off-by: Sridhar Gaddam <[email protected]>
tpantelis pushed a commit to tpantelis/submariner-website that referenced this pull request Nov 3, 2023
This PR includes release notes for
submariner-io/submariner-operator#2770

Signed-off-by: Sridhar Gaddam <[email protected]>
tpantelis pushed a commit to tpantelis/submariner-website that referenced this pull request Nov 6, 2023
This PR includes release notes for
submariner-io/submariner-operator#2770

Signed-off-by: Sridhar Gaddam <[email protected]>
tpantelis pushed a commit to submariner-io/submariner-website that referenced this pull request Nov 6, 2023
This PR includes release notes for
submariner-io/submariner-operator#2770

Signed-off-by: Sridhar Gaddam <[email protected]>
tpantelis pushed a commit to tpantelis/submariner-website that referenced this pull request Nov 7, 2023
This PR includes release notes for
submariner-io/submariner-operator#2770

Signed-off-by: Sridhar Gaddam <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport This change requires a backport to eligible release branches backport-handled ready-to-test When a PR is ready for full E2E testing release-note-handled release-note-needed Should be mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants