[ERROR] Failed to read node-cache coreFile /etc/coredns/Corefile.base - open /etc/coredns/Corefile.base: no such file or directory #11655
Labels
kind/bug
Categorizes issue or PR as related to a bug.
What happened?
node-cache container of nodelocaldns is not coming up. It is looking for a file /etc/coredns/Corefile.base which is missing.
nodelocaldns has configmap and using which it is creating Corefile but nodelocaldns expecting Corefile.base file as well.
nodelocaldns is expecting:
/etc/coredns/Corefile
/etc/coredns/Corefile.base
I was creating required Corefile.base file using new configmap nodelocaldnsbase (which is exact copy of nodelocaldns) was redeploying daemonset "nodelocaldns" but had no luck. So, raising this case.
What did you expect to happen?
nodelocaldns should work seamlessly.
How can we reproduce it (as minimally and precisely as possible)?
Just try to deploy kubernetes v1.30.3 (kubespray v2.26) on Linux 8.8 machines.
OS
Oracle Linux 8.8
Version of Ansible
Version of Python
3.12
Version of Kubespray (commit)
2.26
Network plugin used
calico
Full inventory with variables
[all]
poc-master-01 ansible_host=10.3.0.1 ip=10.3.0.1 etcd_member_name=poc-master-01
poc-master-02 ansible_host=10.3.0.2 ip=10.3.0.2 etcd_member_name=poc-master-02
poc-master-03 ansible_host=10.3.0.3 ip=10.3.0.3 etcd_member_name=poc-master-03
poc-worker-01 ansible_host=10.3.0.4 # ip=10.3.0.4 etcd_member_name=etcd-04
poc-worker-02 ansible_host=10.3.0.5 # ip=10.3.0.5 etcd_member_name=etcd-05
poc-worker-03 ansible_host=10.3.0.6 # ip=10.3.0.6 etcd_member_name=etcd-06
## configure a bastion host if your nodes are not directly reachable
[bastion]
bastion ansible_host=x.x.x.x ansible_user=some_user
[kube_control_plane]
poc-master-01
poc-master-02
poc-master-03
[etcd]
poc-master-01
poc-master-02
poc-master-03
[kube_node]
poc-worker-01
poc-worker-02
poc-worker-03
[calico_rr]
[k8s_cluster:children]
kube_control_plane
kube_node
calico_rr
[k8s_cluster:vars]
ansible_user=ec2-user
Command used to invoke ansible
ansible-playbook -i inventory/mycluster/inventory.ini --become --become-user=root --private-key ~/.ssh/private-key.pem cluster.yml
Output of ansible run
There is no issue in the execution logs (except Modprobe nf_conntrack) but while checking cluster, nodelocaldns is not coming up. while checking logs, it is showing an issue with missing files Corefile.base.
Anything else we need to know
nothing special.
The text was updated successfully, but these errors were encountered: