mirror of
https://github.com/geerlingguy/ansible-role-kubernetes.git
synced 2025-09-02 13:48:26 +02:00
Set kernel parameters for forwarding
This commit is contained in:
parent
fac7b631df
commit
8325de59af
@ -7,6 +7,15 @@
|
|||||||
ansible_distribution != 'Debian'
|
ansible_distribution != 'Debian'
|
||||||
or ansible_distribution_major_version | int < 10
|
or ansible_distribution_major_version | int < 10
|
||||||
|
|
||||||
|
- name: Activate forwarding
|
||||||
|
sysctl:
|
||||||
|
name: "{{ item }}"
|
||||||
|
value: '1'
|
||||||
|
state: present
|
||||||
|
loop:
|
||||||
|
- net.ipv4.ip_forward
|
||||||
|
- net.ipv6.conf.all.forwarding
|
||||||
|
|
||||||
# See: https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/#letting-iptables-see-bridged-traffic
|
# See: https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/#letting-iptables-see-bridged-traffic
|
||||||
- name: Let iptables see bridged traffic.
|
- name: Let iptables see bridged traffic.
|
||||||
sysctl:
|
sysctl:
|
||||||
|
Loading…
Reference in New Issue
Block a user