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:
@@ -16,12 +16,14 @@
|
|||||||
install_recommends: false
|
install_recommends: false
|
||||||
state: present
|
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
|
- name: Pin the ingest name to the NetBird addresses
|
||||||
ansible.builtin.blockinfile:
|
ansible.builtin.blockinfile:
|
||||||
path: /etc/hosts
|
path: /etc/hosts
|
||||||
marker: "# {mark} journal_upload"
|
marker: "# {mark} journal_upload"
|
||||||
block: |
|
block: |
|
||||||
{% for address in journal_upload.addresses %}
|
{% for address in journal_upload.addresses | reject('in', ansible_facts.all_ipv4_addresses) %}
|
||||||
{{ address }} {{ journal_upload.host }}
|
{{ address }} {{ journal_upload.host }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
notify: Restart systemd-journal-upload
|
notify: Restart systemd-journal-upload
|
||||||
|
|||||||
Reference in New Issue
Block a user