From e7cd412fe96fd6cfc510e43dfa72bb66937b3e66 Mon Sep 17 00:00:00 2001 From: Mathieu Tortuyaux Date: Wed, 8 Jun 2022 14:05:29 +0200 Subject: [PATCH] config: add kubernetes configuration 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 --- Makefile | 4 +++- configs/modules-load.d/k8s.conf | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 configs/modules-load.d/k8s.conf diff --git a/Makefile b/Makefile index 2b4f071..30ad443 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,8 @@ 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 @@ -29,6 +30,7 @@ install: 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/ diff --git a/configs/modules-load.d/k8s.conf b/configs/modules-load.d/k8s.conf new file mode 100644 index 0000000..43dd543 --- /dev/null +++ b/configs/modules-load.d/k8s.conf @@ -0,0 +1,2 @@ +overlay +br_netfilter