|
|
|
@ -42,15 +42,15 @@ |
|
|
|
|
copy: |
|
|
|
|
dest: /etc/sysctl.d/k8s.conf |
|
|
|
|
content: | |
|
|
|
|
"net.ipv4.ip_forward = 1" |
|
|
|
|
"net.bridge.bridge-nf-call-iptables = 1" |
|
|
|
|
"net.bridge.bridge-nf-call-ip6tables = 1" |
|
|
|
|
net.ipv4.ip_forward = 1 |
|
|
|
|
net.bridge.bridge-nf-call-iptables = 1 |
|
|
|
|
net.bridge.bridge-nf-call-ip6tables = 1 |
|
|
|
|
- name: Load required modules |
|
|
|
|
copy: |
|
|
|
|
dest: /etc/modules-load.d/k8s.conf |
|
|
|
|
content: | |
|
|
|
|
"overlay" |
|
|
|
|
"br_netfilter" |
|
|
|
|
overlay |
|
|
|
|
br_netfilter |
|
|
|
|
- name: Install CriCtl |
|
|
|
|
command: "{{ item }} chdir=/tmp" |
|
|
|
|
with_items: |
|
|
|
|