journal_upload: a node leaves its own NetBird address out of /etc/hosts, Traefik sees it as the cilium_host address

This commit is contained in:
2026-10-24 16:04:06 +00:00
parent 19a62a43ca
commit c36f269406
+3 -1
View File
@@ -16,12 +16,14 @@
install_recommends: false
state: present
# A node reaching its own address arrives at Traefik from its cilium_host address, which the
# NetBird allowlist rejects; it takes the other nodes.
- name: Pin the ingest name to the NetBird addresses
ansible.builtin.blockinfile:
path: /etc/hosts
marker: "# {mark} journal_upload"
block: |
{% for address in journal_upload.addresses %}
{% for address in journal_upload.addresses | reject('in', ansible_facts.all_ipv4_addresses) %}
{{ address }} {{ journal_upload.host }}
{% endfor %}
notify: Restart systemd-journal-upload