Merge pull request #75 from jhujasonw/sysctl_bridge_update

Adding settings to sysctl for bridging
This commit is contained in:
Jeff Geerling 2020-09-01 11:29:10 -05:00 committed by GitHub
commit c4b512fd26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.