Skip to content

Comments

networkd: prevent networkd interference with kubenet cbr0 interface#55

Merged
pothos merged 1 commit intoflatcar-masterfrom
kai/exclude-cbr0
Dec 10, 2021
Merged

networkd: prevent networkd interference with kubenet cbr0 interface#55
pothos merged 1 commit intoflatcar-masterfrom
kai/exclude-cbr0

Conversation

@pothos
Copy link
Member

@pothos pothos commented Dec 9, 2021

The Kubernetes Kubenet CNI bridge was getting the default networkd
configuration applied which tries to attach an IP address through DHCP.
This meant that the interface was stuck in this "configuring" state by
networkd and this is also a potential source of disruption as reported
in similar cases.

Set the cbr0 interface to be excluded from networkd (unmanaged) because
it is set up manually by kubenet and not through DHCP.

How to use

Testing done

I copied the new config to /etc/systemd/network/cbr.network and saw it take effect

  • Changelog entries added in the respective changelog/ directory (user-facing change, bug fix, security fix, update)
    ↑ will do in coreos-overlay

The Kubernetes Kubenet CNI bridge was getting the default networkd
configuration applied which tries to attach an IP address through DHCP.
This meant that the interface was stuck in this "configuring" state by
networkd and this is also a potential source of disruption as reported
in similar cases.

Set the cbr0 interface to be excluded from networkd (unmanaged) because
it is set up manually by kubenet and not through DHCP.
@pothos pothos requested a review from a team December 9, 2021 11:33
pothos added a commit to flatcar-archive/coreos-overlay that referenced this pull request Dec 9, 2021
This pulls in flatcar/init#55 to set the
cbr0 interface to be excluded from networkd (unmanaged) because it is
set up manually by kubenet and not through DHCP.
Copy link
Member

@krnowak krnowak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this potentially being superseded by #56?

@pothos pothos merged commit bf688ad into flatcar-master Dec 10, 2021
@pothos pothos deleted the kai/exclude-cbr0 branch December 10, 2021 14:12
pothos added a commit to flatcar-archive/coreos-overlay that referenced this pull request Dec 10, 2021
This pulls in flatcar/init#55 to set the
cbr0 interface to be excluded from networkd (unmanaged) because it is
set up manually by kubenet and not through DHCP.
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

Successfully merging this pull request may close these issues.

2 participants