diff --git a/roles/kubernetes/node/tasks/main.yml b/roles/kubernetes/node/tasks/main.yml index dd2885a97..13cc0740d 100644 --- a/roles/kubernetes/node/tasks/main.yml +++ b/roles/kubernetes/node/tasks/main.yml @@ -121,7 +121,12 @@ - name: Persist ip_vs modules copy: dest: /etc/modules-load.d/kube_proxy-ipvs.conf - content: "ip_vs\nip_vs_rr\nip_vs_wrr\nip_vs_sh\nnf_conntrack_ipv4" + content: | + ip_vs + ip_vs_rr + ip_vs_wrr + ip_vs_sh + nf_conntrack_ipv4 when: kube_proxy_mode == 'ipvs' tags: - kube-proxy