actualized for kubespray version 2.28.0

This commit is contained in:
2025-06-15 20:25:45 +03:00
parent c819d4f51f
commit c2df2abc78
366 changed files with 9939 additions and 40388 deletions

View File

@@ -3,6 +3,7 @@
service:
name: "{{ item }}"
state: stopped
enabled: false
with_items:
- kubelet.service
- cri-dockerd.service
@@ -188,7 +189,7 @@
- nat
- mangle
- raw
when: flush_iptables | bool
when: flush_iptables | bool and ipv4_stack
tags:
- iptables
@@ -202,7 +203,7 @@
- nat
- mangle
- raw
when: flush_iptables | bool and enable_dual_stack_networks
when: flush_iptables | bool and ipv6_stack
tags:
- ip6tables
@@ -210,7 +211,7 @@
command: "ipvsadm -C"
ignore_errors: true # noqa ignore-errors
when:
- kube_proxy_mode == 'ipvs' and inventory_hostname in groups['k8s_cluster']
- kube_proxy_mode == 'ipvs' and 'k8s_cluster' in group_names
- name: Reset | check kube-ipvs0 network device
stat:
@@ -290,6 +291,7 @@
- /var/log/openvswitch
- /var/log/ovn
- /var/log/kube-ovn
- /var/log/containers
- /etc/cni
- /etc/nerdctl
- "{{ nginx_config_dir }}"
@@ -345,9 +347,6 @@
- /etc/bash_completion.d/kubectl.sh
- /etc/bash_completion.d/crictl
- /etc/bash_completion.d/nerdctl
- /etc/bash_completion.d/krew
- /etc/bash_completion.d/krew.sh
- "{{ krew_root_dir }}"
- /etc/modules-load.d/kube_proxy-ipvs.conf
- /etc/modules-load.d/kubespray-br_netfilter.conf
- /etc/modules-load.d/kubespray-kata-containers.conf
@@ -412,12 +411,27 @@
- network
- name: Reset | Restart network
service:
name: "{{ reset_restart_network_service_name }}"
state: restarted
when:
- ansible_os_family not in ["Flatcar", "Flatcar Container Linux by Kinvolk"]
- reset_restart_network | bool
tags:
- services
- network
block:
- name: Gather active network services
systemd:
name: "{{ item }}"
loop:
- NetworkManager
- systemd-networkd
- networking
- network
register: service_status
changed_when: false
ignore_errors: true
- name: Restart active network services
systemd:
name: "{{ item }}"
state: restarted
loop: "{{ service_status.results | selectattr('status.ActiveState', '==', 'active') | map(attribute='item') }}"