From 099b3ef721f64179262d640d2bd148da30dab81d Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sat, 27 Aug 2022 10:55:45 +0200 Subject: [PATCH] updated kubernetes state --- states/kubernetes/defaults.yaml | 5 +++++ states/kubernetes/prepare.sls | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) 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