diff --git a/states/kubernetes/defaults.yaml b/states/kubernetes/defaults.yaml index c02aa33..f27213c 100644 --- a/states/kubernetes/defaults.yaml +++ b/states/kubernetes/defaults.yaml @@ -5,3 +5,8 @@ kubernetes: arch: amd64 required_modules: - br_netfilter + - ip_vs + - ip_vs_rr + - ip_vs_wrr + - ip_vs_sh + - nf_conntrack diff --git a/states/kubernetes/prepare.sls b/states/kubernetes/prepare.sls index d0e2195..ba90404 100644 --- a/states/kubernetes/prepare.sls +++ b/states/kubernetes/prepare.sls @@ -16,14 +16,14 @@ kubernetes-modules-load-{{ module }}: - name: modprobe {{ module }} {% endfor %} -kubernetes-modules-loadatstartup-{{ module }}: +kubernetes-modules-loadatstartup: file.managed: - name: /etc/sysctl.d/10-kube.conf - - source: salt///kubernetes/templates/sysctl.conf.j2 + - source: salt://kubernetes/templates/sysctl.conf.j2 - template: jinja {% for name in ['iptables', 'ip6tables'] %} kubernetes-alternatives-{{ name }}: cmd.run: - - name: "update-alternatives --set {{ name }} /usr/sbin/{{ name }}" + - name: "update-alternatives --set {{ name }} /usr/sbin/{{ name }}-legacy" {% endfor %} \ No newline at end of file