Skip to content

Commit

Permalink
config: add kubernetes configuration
Browse files Browse the repository at this point in the history
With Kubernetes 1.24 the dockershim component has been removed from the kubelet.
Docker was automatically loading the `br_netfilter` module so we need to
load the module automatically with `systemd-modules-load`.

See also: https://kubernetes.io/docs/setup/production-environment/container-runtimes/#forwarding-ipv4-and-letting-iptables-see-bridged-traffic

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
  • Loading branch information
tormath1 committed Jun 9, 2022
1 parent 33858a1 commit e7cd412
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Expand Up @@ -21,14 +21,16 @@ install:
$(DESTDIR)/usr/lib/systemd/system-generators \
$(DESTDIR)/usr/lib/tmpfiles.d \
$(DESTDIR)/etc/env.d \
$(DESTDIR)/usr/share/ssh
$(DESTDIR)/usr/share/ssh \
$(DESTDIR)/usr/lib/modules-load.d
install -m 755 bin/* $(DESTDIR)/usr/bin
install -m 755 sbin/* $(DESTDIR)/usr/sbin
ln -sf flatcar-install $(DESTDIR)/usr/bin/coreos-install
install -m 755 scripts/* $(DESTDIR)/usr/lib/flatcar
install -m 644 udev/rules.d/* $(DESTDIR)/lib/udev/rules.d
install -m 755 udev/bin/* $(DESTDIR)/lib/udev
install -m 644 configs/editor.sh $(DESTDIR)/etc/env.d/99editor
install -m 644 configs/modules-load.d/* $(DESTDIR)/usr/lib/modules-load.d/
install -m 600 configs/sshd_config $(DESTDIR)/usr/share/ssh/
install -m 644 configs/ssh_config $(DESTDIR)/usr/share/ssh/
install -m 644 configs/tmpfiles.d/* $(DESTDIR)/usr/lib/tmpfiles.d/
Expand Down
2 changes: 2 additions & 0 deletions configs/modules-load.d/k8s.conf
@@ -0,0 +1,2 @@
overlay
br_netfilter

0 comments on commit e7cd412

Please sign in to comment.