From 8d67a5988ba86ae43eab8555238718d15e569a72 Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Sat, 1 Jul 2023 08:09:02 -0400 Subject: [PATCH] fix: do not manage Foreign Routes or Foreign Routing Rules --- ansible/playbooks/cluster-prepare.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ansible/playbooks/cluster-prepare.yml b/ansible/playbooks/cluster-prepare.yml index 0ef4d5e9..db07d4f1 100644 --- a/ansible/playbooks/cluster-prepare.yml +++ b/ansible/playbooks/cluster-prepare.yml @@ -17,6 +17,7 @@ name: "{{ timezone | default('Etc/UTC') }}" - name: Networking + notify: Restart systemd-networkd block: - name: Networking | Set hostname to inventory hostname ansible.builtin.hostname: @@ -26,6 +27,17 @@ path: /etc/hosts block: | 127.0.1.1 {{ inventory_hostname }} + # https://github.com/cilium/cilium/issues/18706 + - name: Network | Cilium (1) + ansible.builtin.lineinfile: + dest: /etc/systemd/networkd.conf + regexp: ManageForeignRoutingPolicyRules + line: ManageForeignRoutingPolicyRules=no + - name: Network Configuration | Cilium (2) + ansible.builtin.lineinfile: + dest: /etc/systemd/networkd.conf + regexp: ManageForeignRoutes + line: ManageForeignRoutes=no - name: Packages block: @@ -123,6 +135,10 @@ notify: Reboot handlers: + - name: Restart systemd-networkd + ansible.builtin.systemd: + service: systemd-networkd + state: restarted - name: Reboot ansible.builtin.reboot: msg: Rebooting nodes