updated kubernetes state

This commit is contained in:
Paul 2022-10-10 10:18:33 +02:00
parent 8be1f8d305
commit ebbb961d6d
3 changed files with 8 additions and 10 deletions

View File

@ -7,7 +7,3 @@ kubernetes-containerd-conf:
- template: jinja - template: jinja
- watch_in: - watch_in:
- service: kubernetes-containerd-service - service: kubernetes-containerd-service
kubernetes-containerd-reset-cni:
file.absent:
- name: /etc/cni/net.d/10-flannel.conflist

View File

@ -14,3 +14,7 @@ kubernetes:
net.ipv4.ip_forward: 1 net.ipv4.ip_forward: 1
net.ipv6.conf.all.forwarding: 1 net.ipv6.conf.all.forwarding: 1
net.ipv6.conf.all.disable_ipv6: 0 net.ipv6.conf.all.disable_ipv6: 0
services:
- kubelet
- containerd
- systemd-resolved

View File

@ -1,10 +1,8 @@
--- ---
{%- from "kubernetes/map.jinja" import kubernetes with context %} {%- from "kubernetes/map.jinja" import kubernetes with context %}
kubernetes-containerd-service: {%- for service in kubernetes.services %}
kubernetes-{{ service }}-service:
service.running: service.running:
- name: containerd - name: {{ service }}
kubernetes-systemd-resolved:
service.running:
- name: systemd-resolved
- enable: true - enable: true
{%- endfor %}