Coredns is in crashloopbackoff because of kubelet_systemd_hardening: true
as soon as its turned of it works otherwise it doesnt start. coredns fails readiness and health probes and never trurns to running state
What did you expect to happen?
Coredns should run as without any problems
How can we reproduce it (as minimally and precisely as possible)?
What happened?
Coredns is in crashloopbackoff because of kubelet_systemd_hardening: true as soon as its turned of it works otherwise it doesnt start. coredns fails readiness and health probes and never trurns to running state
What did you expect to happen?
Coredns should run as without any problems
How can we reproduce it (as minimally and precisely as possible)?
ansible-playbook -v cluster.yml -i inventory/inficluster/hosts.yaml -b --become-user=root -e '@inventory/inficluster/hardening.yaml'
Hardening
OS
Linux 6.5.0-25-generic x86_64 PRETTY_NAME="Ubuntu 22.04.4 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.4 LTS (Jammy Jellyfish)" VERSION_CODENAME=jammy ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=jammy
Version of Ansible
ansible [core 2.16.4] config file = /home/tyson/Project/kubespray/ansible.cfg configured module search path = ['/home/tyson/Project/kubespray/library'] ansible python module location = /home/tyson/Project/kubespray-venv/lib/python3.10/site-packages/ansible ansible collection location = /home/tyson/.ansible/collections:/usr/share/ansible/collections executable location = /home/tyson/Project/kubespray-venv/bin/ansible python version = 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] (/home/tyson/Project/kubespray-venv/bin/python3) jinja version = 3.1.2 libyaml = True
Version of Python
Python 3.10.12
Version of Kubespray (commit)
a1cf8291a
Network plugin used
calico
Full inventory with variables
This has some private vars
Command used to invoke ansible
ansible-playbook -v cluster.yml -i inventory/inficluster/hosts.yaml -b --become-user=root -e '@inventory/inficluster/hardening.yaml'
Output of ansible run
node2 : ok=732 changed=27 unreachable=0 failed=0 skipped=1188 rescued=0 ignored=1
node3 : ok=591 changed=13 unreachable=0 failed=0 skipped=1058 rescued=0 ignored=1
Anything else we need to know
No response