diff --git a/build/debs/50-kubeadm.conf b/build/debs/50-kubeadm.conf new file mode 100644 index 00000000000..a5d977316dd --- /dev/null +++ b/build/debs/50-kubeadm.conf @@ -0,0 +1,2 @@ +# The file is provided as part of the kubeadm package +net.ipv4.ip_forward = 1 diff --git a/build/debs/BUILD b/build/debs/BUILD index b89dbe1b303..04365afecd0 100644 --- a/build/debs/BUILD +++ b/build/debs/BUILD @@ -78,6 +78,16 @@ deb_data( "mode": "644", "dir": "/etc/systemd/system/kubelet.service.d", }, + { + "files": ["kubeadm.conf"], + "mode": "644", + "dir": "/usr/lib/modules-load.d", + }, + { + "files": ["50-kubeadm.conf"], + "mode": "644", + "dir": "/etc/sysctl.d/50-kubeadm.conf", + } ], ) diff --git a/build/debs/kubeadm.conf b/build/debs/kubeadm.conf new file mode 100644 index 00000000000..4b3e02da8cc --- /dev/null +++ b/build/debs/kubeadm.conf @@ -0,0 +1,2 @@ +# Load br_netfilter module at boot +br_netfilter