Add net.ipv4.ip_forward=1 and use ansible sysctl.
Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
parent
2dae863f87
commit
b2dcb9f3ec
@ -17,13 +17,14 @@
|
|||||||
systemd: name=cri-containerd daemon_reload=yes state=started enabled=yes
|
systemd: name=cri-containerd daemon_reload=yes state=started enabled=yes
|
||||||
|
|
||||||
- name: "Set bridge-nf-call-iptables"
|
- name: "Set bridge-nf-call-iptables"
|
||||||
lineinfile:
|
sysctl:
|
||||||
line: "net/bridge/bridge-nf-call-iptables = 1"
|
name: net.bridge.bridge-nf-call-iptables
|
||||||
dest: /etc/sysctl.conf
|
value: 1
|
||||||
insertafter: 'EOF'
|
|
||||||
regexp: '\/net\/bridge\/bridge-nf-call-iptables = 1'
|
- name: "Set ip_forward"
|
||||||
state: present
|
sysctl:
|
||||||
ignore_errors: true
|
name: net.ipv4.ip_forward
|
||||||
|
value: 1
|
||||||
|
|
||||||
- name: "Check kubelet args in kubelet config"
|
- name: "Check kubelet args in kubelet config"
|
||||||
shell: grep "^Environment=\"KUBELET_EXTRA_ARGS=" /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
|
shell: grep "^Environment=\"KUBELET_EXTRA_ARGS=" /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user