mirror of
https://github.com/geerlingguy/ansible-role-kubernetes.git
synced 2024-11-18 19:10:39 +01:00
PR #75 follow-up: Move sysctl setup into separate task file.
This commit is contained in:
parent
c4b512fd26
commit
749d2869af
@ -18,19 +18,7 @@
|
||||
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: sysctl-setup.yml
|
||||
|
||||
- include_tasks: kubelet-setup.yml
|
||||
|
||||
|
13
tasks/sysctl-setup.yml
Normal file
13
tasks/sysctl-setup.yml
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
# See: https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/#letting-iptables-see-bridged-traffic
|
||||
- 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
|
Loading…
Reference in New Issue
Block a user