Fix Fedora CoreOS support for flannel CNI

* Explicitly load the `nf_conntrack` and `br_netfilter` kernel
modules that are needed for flannel CNI setups
* Specifically, flannel needs `br_netfilter` and kube-proxy (used
in flannel setups) needs `nf_conntrack`. Previously these kernel
modules were loaded by default but no longer seem to be
This commit is contained in:
Dalton Hubble
2024-12-27 19:36:34 -08:00
parent 8059eb9f0c
commit cc790bfc45
11 changed files with 75 additions and 0 deletions

View File

@@ -13,6 +13,11 @@ Notable changes between versions.
* Remove `network_mtu`, `network_encapsulation`, and `network_ip_autodetection_method` variables (Calico-specific)
* Remove Calico-specific Kubelet mounts
### Fedora CoreOS
* Fix Fedora CoreOS support for flannel CNI ([#1557](https://github.com/poseidon/typhoon/pull/1557))
* Explicitly load the `nf_conntrack` and `br_netfilter` kernel modules flannel needs
# v1.31.4
* Kubernetes [v1.31.4](https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.31.md#v1314)

View File

@@ -157,6 +157,13 @@ storage:
readOnlyPort: 0
resolvConf: /run/systemd/resolve/resolv.conf
volumePluginDir: /var/lib/kubelet/volumeplugins
- path: /etc/modules-load.d/typhoon.conf
mode: 0644
contents:
inline: |
# https://github.com/flannel-io/flannel/tree/master
nf_conntrack
br_netfilter
- path: /opt/bootstrap/layout
mode: 0544
contents:

View File

@@ -112,6 +112,13 @@ storage:
readOnlyPort: 0
resolvConf: /run/systemd/resolve/resolv.conf
volumePluginDir: /var/lib/kubelet/volumeplugins
- path: /etc/modules-load.d/typhoon.conf
mode: 0644
contents:
inline: |
# https://github.com/flannel-io/flannel/tree/master
nf_conntrack
br_netfilter
- path: /etc/systemd/logind.conf.d/inhibitors.conf
contents:
inline: |

View File

@@ -152,6 +152,13 @@ storage:
readOnlyPort: 0
resolvConf: /run/systemd/resolve/resolv.conf
volumePluginDir: /var/lib/kubelet/volumeplugins
- path: /etc/modules-load.d/typhoon.conf
mode: 0644
contents:
inline: |
# https://github.com/flannel-io/flannel/tree/master
nf_conntrack
br_netfilter
- path: /opt/bootstrap/layout
mode: 0544
contents:

View File

@@ -107,6 +107,13 @@ storage:
readOnlyPort: 0
resolvConf: /run/systemd/resolve/resolv.conf
volumePluginDir: /var/lib/kubelet/volumeplugins
- path: /etc/modules-load.d/typhoon.conf
mode: 0644
contents:
inline: |
# https://github.com/flannel-io/flannel/tree/master
nf_conntrack
br_netfilter
- path: /etc/systemd/logind.conf.d/inhibitors.conf
contents:
inline: |

View File

@@ -162,6 +162,13 @@ storage:
readOnlyPort: 0
resolvConf: /run/systemd/resolve/resolv.conf
volumePluginDir: /var/lib/kubelet/volumeplugins
- path: /etc/modules-load.d/typhoon.conf
mode: 0644
contents:
inline: |
# https://github.com/flannel-io/flannel/tree/master
nf_conntrack
br_netfilter
- path: /opt/bootstrap/layout
mode: 0544
contents:

View File

@@ -116,6 +116,13 @@ storage:
readOnlyPort: 0
resolvConf: /run/systemd/resolve/resolv.conf
volumePluginDir: /var/lib/kubelet/volumeplugins
- path: /etc/modules-load.d/typhoon.conf
mode: 0644
contents:
inline: |
# https://github.com/flannel-io/flannel/tree/master
nf_conntrack
br_netfilter
- path: /etc/systemd/logind.conf.d/inhibitors.conf
contents:
inline: |

View File

@@ -159,6 +159,13 @@ storage:
readOnlyPort: 0
resolvConf: /run/systemd/resolve/resolv.conf
volumePluginDir: /var/lib/kubelet/volumeplugins
- path: /etc/modules-load.d/typhoon.conf
mode: 0644
contents:
inline: |
# https://github.com/flannel-io/flannel/tree/master
nf_conntrack
br_netfilter
- path: /opt/bootstrap/layout
mode: 0544
contents:

View File

@@ -112,6 +112,13 @@ storage:
readOnlyPort: 0
resolvConf: /run/systemd/resolve/resolv.conf
volumePluginDir: /var/lib/kubelet/volumeplugins
- path: /etc/modules-load.d/typhoon.conf
mode: 0644
contents:
inline: |
# https://github.com/flannel-io/flannel/tree/master
nf_conntrack
br_netfilter
- path: /etc/systemd/logind.conf.d/inhibitors.conf
contents:
inline: |

View File

@@ -151,6 +151,13 @@ storage:
readOnlyPort: 0
resolvConf: /run/systemd/resolve/resolv.conf
volumePluginDir: /var/lib/kubelet/volumeplugins
- path: /etc/modules-load.d/typhoon.conf
mode: 0644
contents:
inline: |
# https://github.com/flannel-io/flannel/tree/master
nf_conntrack
br_netfilter
- path: /opt/bootstrap/layout
mode: 0544
contents:

View File

@@ -106,6 +106,13 @@ storage:
readOnlyPort: 0
resolvConf: /run/systemd/resolve/resolv.conf
volumePluginDir: /var/lib/kubelet/volumeplugins
- path: /etc/modules-load.d/typhoon.conf
mode: 0644
contents:
inline: |
# https://github.com/flannel-io/flannel/tree/master
nf_conntrack
br_netfilter
- path: /etc/systemd/logind.conf.d/inhibitors.conf
contents:
inline: |