mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-10-29 22:03:22 -02:30
Remove support and CI for EOL Debian 11 (#13483)
- also remove macvlan on debian support since the role works neither on debian 12 nor 13 - macvlan is no longer tested in CI as it does not work on rockylinux10 either
This commit is contained in:
@@ -7,8 +7,6 @@
|
||||
network
|
||||
{%- elif ansible_facts['distribution'] == "Ubuntu" and ansible_facts['distribution_release'] == "bionic" -%}
|
||||
systemd-networkd
|
||||
{%- elif ansible_facts['os_family'] == "Debian" -%}
|
||||
networking
|
||||
{%- endif %}
|
||||
state: restarted
|
||||
when: not ansible_facts['os_family'] in ["Flatcar", "Flatcar Container Linux by Kinvolk"] and kube_network_plugin not in ['calico']
|
||||
|
||||
@@ -19,14 +19,6 @@
|
||||
set_fact:
|
||||
node_default_gateway_interface: "{{ node_default_gateway_interface_cmd.stdout | trim }}"
|
||||
|
||||
- name: Macvlan | Install network gateway interface on debian
|
||||
template:
|
||||
src: debian-network-macvlan.cfg.j2
|
||||
dest: /etc/network/interfaces.d/60-mac0.cfg
|
||||
mode: "0644"
|
||||
notify: Macvlan | restart network
|
||||
when: ansible_facts['os_family'] in ["Debian"]
|
||||
|
||||
- name: Install macvlan config on RH distros
|
||||
when: ansible_facts['os_family'] == "RedHat"
|
||||
block:
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
auto mac0
|
||||
iface mac0 inet static
|
||||
address {{ node_pod_cidr|ansible.utils.ipaddr('net')|ansible.utils.ipaddr(1)|ansible.utils.ipaddr('address') }}
|
||||
network {{ node_pod_cidr|ansible.utils.ipaddr('network') }}
|
||||
netmask {{ node_pod_cidr|ansible.utils.ipaddr('netmask') }}
|
||||
broadcast {{ node_pod_cidr|ansible.utils.ipaddr('broadcast') }}
|
||||
pre-up ip link add link {{ macvlan_interface }} mac0 type macvlan mode bridge
|
||||
{% for host in groups['kube_node'] %}
|
||||
{% if hostvars[host]['access_ip'] is defined %}
|
||||
{% if hostvars[host]['node_pod_cidr'] != node_pod_cidr %}
|
||||
post-up ip route add {{ hostvars[host]['node_pod_cidr'] }} via {{ hostvars[host]['access_ip'] }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% if enable_nat_default_gateway %}
|
||||
post-up iptables -t nat -I POSTROUTING -s {{ node_pod_cidr|ansible.utils.ipaddr('net') }} -o {{ node_default_gateway_interface }} -j MASQUERADE
|
||||
{% endif %}
|
||||
{% for host in groups['kube_node'] %}
|
||||
{% if hostvars[host]['access_ip'] is defined %}
|
||||
{% if hostvars[host]['node_pod_cidr'] != node_pod_cidr %}
|
||||
post-down ip route del {{ hostvars[host]['node_pod_cidr'] }} via {{ hostvars[host]['access_ip'] }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
post-down iptables -t nat -D POSTROUTING -s {{ node_pod_cidr|ansible.utils.ipaddr('net') }} -o {{ node_default_gateway_interface }} -j MASQUERADE
|
||||
post-down ip link delete mac0
|
||||
@@ -43,7 +43,7 @@ pkgs:
|
||||
ebtables: []
|
||||
gnupg:
|
||||
- "{{ ansible_distribution == 'Debian' }}"
|
||||
- "{{ ansible_distribution_major_version in ['11', '12'] }}"
|
||||
- "{{ ansible_distribution_major_version == '12' }}"
|
||||
- "{{ 'k8s_cluster' in group_names }}"
|
||||
iproute:
|
||||
- "{{ ansible_os_family == 'RedHat' }}"
|
||||
|
||||
Reference in New Issue
Block a user