From 0a7fab56e2cb0a87d84c62bcd8a399320da2d2ff Mon Sep 17 00:00:00 2001 From: Dalton Hubble Date: Wed, 25 Apr 2018 18:55:51 -0700 Subject: [PATCH] Load ip_vs kernel module on boot as workaround * (containerized) kube-proxy warns that it is unable to load the ip_vs kernel module despite having the correct mounts. Atomic uses an xz compressed module and modprobe in the container was not compiled with compression support * Workaround issue for now by always loading ip_vs on-host * https://github.com/kubernetes/kubernetes/issues/60 --- aws/fedora-atomic/kubernetes/cloudinit/controller.yaml.tmpl | 2 ++ aws/fedora-atomic/kubernetes/workers/cloudinit/worker.yaml.tmpl | 2 ++ .../fedora-atomic/kubernetes/cloudinit/controller.yaml.tmpl | 2 ++ bare-metal/fedora-atomic/kubernetes/cloudinit/worker.yaml.tmpl | 2 ++ .../fedora-atomic/kubernetes/cloudinit/controller.yaml.tmpl | 2 ++ .../fedora-atomic/kubernetes/cloudinit/worker.yaml.tmpl | 2 ++ .../fedora-atomic/kubernetes/cloudinit/controller.yaml.tmpl | 2 ++ .../fedora-atomic/kubernetes/workers/cloudinit/worker.yaml.tmpl | 2 ++ 8 files changed, 16 insertions(+) diff --git a/aws/fedora-atomic/kubernetes/cloudinit/controller.yaml.tmpl b/aws/fedora-atomic/kubernetes/cloudinit/controller.yaml.tmpl index edd85820..adf95c34 100644 --- a/aws/fedora-atomic/kubernetes/cloudinit/controller.yaml.tmpl +++ b/aws/fedora-atomic/kubernetes/cloudinit/controller.yaml.tmpl @@ -80,6 +80,8 @@ write_files: bootcmd: - [setenforce, Permissive] - [systemctl, disable, firewalld, --now] + # https://github.com/kubernetes/kubernetes/issues/60869 + - [modprobe, ip_vs] runcmd: - [systemctl, daemon-reload] - "atomic install --system --name=etcd quay.io/poseidon/etcd:v3.3.3" diff --git a/aws/fedora-atomic/kubernetes/workers/cloudinit/worker.yaml.tmpl b/aws/fedora-atomic/kubernetes/workers/cloudinit/worker.yaml.tmpl index 12d9e0b4..a104b755 100644 --- a/aws/fedora-atomic/kubernetes/workers/cloudinit/worker.yaml.tmpl +++ b/aws/fedora-atomic/kubernetes/workers/cloudinit/worker.yaml.tmpl @@ -56,6 +56,8 @@ write_files: bootcmd: - [setenforce, Permissive] - [systemctl, disable, firewalld, --now] + # https://github.com/kubernetes/kubernetes/issues/60869 + - [modprobe, ip_vs] runcmd: - [systemctl, daemon-reload] - [systemctl, enable, cloud-metadata.service] diff --git a/bare-metal/fedora-atomic/kubernetes/cloudinit/controller.yaml.tmpl b/bare-metal/fedora-atomic/kubernetes/cloudinit/controller.yaml.tmpl index 8eaf7985..54fd196b 100644 --- a/bare-metal/fedora-atomic/kubernetes/cloudinit/controller.yaml.tmpl +++ b/bare-metal/fedora-atomic/kubernetes/cloudinit/controller.yaml.tmpl @@ -70,6 +70,8 @@ write_files: bootcmd: - [setenforce, Permissive] - [systemctl, disable, firewalld, --now] + # https://github.com/kubernetes/kubernetes/issues/60869 + - [modprobe, ip_vs] runcmd: - [systemctl, daemon-reload] - [hostnamectl, set-hostname, ${domain_name}] diff --git a/bare-metal/fedora-atomic/kubernetes/cloudinit/worker.yaml.tmpl b/bare-metal/fedora-atomic/kubernetes/cloudinit/worker.yaml.tmpl index d3d1f835..62669bca 100644 --- a/bare-metal/fedora-atomic/kubernetes/cloudinit/worker.yaml.tmpl +++ b/bare-metal/fedora-atomic/kubernetes/cloudinit/worker.yaml.tmpl @@ -46,6 +46,8 @@ write_files: bootcmd: - [setenforce, Permissive] - [systemctl, disable, firewalld, --now] + # https://github.com/kubernetes/kubernetes/issues/60869 + - [modprobe, ip_vs] runcmd: - [systemctl, daemon-reload] - [hostnamectl, set-hostname, ${domain_name}] diff --git a/digital-ocean/fedora-atomic/kubernetes/cloudinit/controller.yaml.tmpl b/digital-ocean/fedora-atomic/kubernetes/cloudinit/controller.yaml.tmpl index 637ae707..00bbf8ea 100644 --- a/digital-ocean/fedora-atomic/kubernetes/cloudinit/controller.yaml.tmpl +++ b/digital-ocean/fedora-atomic/kubernetes/cloudinit/controller.yaml.tmpl @@ -84,6 +84,8 @@ write_files: bootcmd: - [setenforce, Permissive] - [systemctl, disable, firewalld, --now] + # https://github.com/kubernetes/kubernetes/issues/60869 + - [modprobe, ip_vs] runcmd: - [systemctl, daemon-reload] - "atomic install --system --name=etcd quay.io/poseidon/etcd:v3.3.3" diff --git a/digital-ocean/fedora-atomic/kubernetes/cloudinit/worker.yaml.tmpl b/digital-ocean/fedora-atomic/kubernetes/cloudinit/worker.yaml.tmpl index 66ea6421..67ea7b2f 100644 --- a/digital-ocean/fedora-atomic/kubernetes/cloudinit/worker.yaml.tmpl +++ b/digital-ocean/fedora-atomic/kubernetes/cloudinit/worker.yaml.tmpl @@ -60,6 +60,8 @@ write_files: bootcmd: - [setenforce, Permissive] - [systemctl, disable, firewalld, --now] + # https://github.com/kubernetes/kubernetes/issues/60869 + - [modprobe, ip_vs] runcmd: - [systemctl, daemon-reload] - [systemctl, enable, cloud-metadata.service] diff --git a/google-cloud/fedora-atomic/kubernetes/cloudinit/controller.yaml.tmpl b/google-cloud/fedora-atomic/kubernetes/cloudinit/controller.yaml.tmpl index 37102ebc..21135269 100644 --- a/google-cloud/fedora-atomic/kubernetes/cloudinit/controller.yaml.tmpl +++ b/google-cloud/fedora-atomic/kubernetes/cloudinit/controller.yaml.tmpl @@ -81,6 +81,8 @@ write_files: bootcmd: - [setenforce, Permissive] - [systemctl, disable, firewalld, --now] + # https://github.com/kubernetes/kubernetes/issues/60869 + - [modprobe, ip_vs] runcmd: - [systemctl, daemon-reload] - "atomic install --system --name=etcd quay.io/poseidon/etcd:v3.3.3" diff --git a/google-cloud/fedora-atomic/kubernetes/workers/cloudinit/worker.yaml.tmpl b/google-cloud/fedora-atomic/kubernetes/workers/cloudinit/worker.yaml.tmpl index e6b5e9f5..9ff26f49 100644 --- a/google-cloud/fedora-atomic/kubernetes/workers/cloudinit/worker.yaml.tmpl +++ b/google-cloud/fedora-atomic/kubernetes/workers/cloudinit/worker.yaml.tmpl @@ -57,6 +57,8 @@ write_files: bootcmd: - [setenforce, Permissive] - [systemctl, disable, firewalld, --now] + # https://github.com/kubernetes/kubernetes/issues/60869 + - [modprobe, ip_vs] runcmd: - [systemctl, daemon-reload] - [systemctl, enable, cloud-metadata.service]