From f105b362449d3318c12bbdebf59a78e279bbe913 Mon Sep 17 00:00:00 2001 From: Jason Williams Date: Wed, 20 May 2020 13:57:47 -0400 Subject: [PATCH] Adding settings to sysctl for briding --- tasks/main.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index e90420a..f96d989 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -18,6 +18,20 @@ notify: restart kubelet with_items: "{{ kubernetes_packages }}" +# per the install doc, +# https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/ +- name: Set sysctl for IPv4 bridges + sysctl: + name: net.bridge.bridge-nf-call-iptables + value: 1 + state: present + +- name: Set sysctl for IPv6 bridges + sysctl: + name: net.bridge.bridge-nf-call-ip6tables + value: 1 + state: present + - include_tasks: kubelet-setup.yml - name: Ensure kubelet is started and enabled at boot.