k3s-agent: cloud-init verwaltet /etc/hosts nicht mehr; Befund Netzausfall 20.10. (BETRIEB §14.x)
ci / test (push) Failing after 23s
ci / test (push) Failing after 23s
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
75764aaf6a
commit
1f3b12d099
@@ -1,5 +1,16 @@
|
||||
# k3s-Agent neben Docker: k3s bringt sein eigenes containerd mit und erkennt nvidia-container-runtime
|
||||
# von selbst (Runtime "nvidia"). Docker bleibt für die bestehenden Compose-Stacks, bis sie umgezogen sind.
|
||||
# cloud-init (Ubuntu-Cloud-Image: manage_etc_hosts template) schreibt /etc/hosts bei jedem Start neu und warf den
|
||||
# Eintrag k3s.knaster weg (Befund 20.10.: nach VM-Neustart am 15.10. lebten die Agents nur vom gemerkten Serverstand;
|
||||
# als die k3s-VM per DHCP eine andere Adresse bekam, waren alle Knoten NotReady).
|
||||
- name: cloud-init verwaltet /etc/hosts nicht mehr
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/cloud/cloud.cfg.d/99-knaster-hosts.cfg
|
||||
content: |
|
||||
# Rolle k3s-agent: /etc/hosts gehört Ansible (Eintrag k3s.knaster), nicht cloud-init
|
||||
manage_etc_hosts: false
|
||||
mode: "0644"
|
||||
|
||||
- name: Server-Name in /etc/hosts (Adresse per DHCP, D5)
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/hosts
|
||||
|
||||
Reference in New Issue
Block a user