mirror of
https://github.com/geerlingguy/ansible-role-kubernetes.git
synced 2024-11-18 19:10:39 +01:00
Adding settings to sysctl for briding
This commit is contained in:
parent
8a57427628
commit
f105b36244
@ -18,6 +18,20 @@
|
|||||||
notify: restart kubelet
|
notify: restart kubelet
|
||||||
with_items: "{{ kubernetes_packages }}"
|
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
|
- include_tasks: kubelet-setup.yml
|
||||||
|
|
||||||
- name: Ensure kubelet is started and enabled at boot.
|
- name: Ensure kubelet is started and enabled at boot.
|
||||||
|
Loading…
Reference in New Issue
Block a user