compliantkubernetes-apps icon indicating copy to clipboard operation
compliantkubernetes-apps copied to clipboard

node-local-dns - Failed to read node-cache coreFile

Open crssnd opened this issue 1 year ago • 0 comments

Describe the bug:

Seems that after kured reboot one of the node-local-dns pod gets into an error state.

2023/10/13 06:17:25 [INFO] Starting node-cache image: 1.22.20
2023/10/13 06:17:25 [INFO] Using Corefile /etc/Corefile
2023/10/13 06:17:25 [INFO] Using Pidfile 
2023/10/13 06:17:25 [ERROR] Failed to read node-cache coreFile /etc/coredns/Corefile.base - open /etc/coredns/Corefile.base: no such file or directory
2023/10/13 06:17:25 [ERROR] Failed to read node-cache coreFile /etc/coredns/Corefile.base - open /etc/coredns/Corefile.base: no such file or directory
loading Caddyfile via flag: open /etc/Corefile: no such file or directory

Manually restarting the pod fixes the issue.

To Reproduce:

I could not .

Expected behaviour:

All node-local-dns pods start as they should

Version (add all relevant versions):

  • Compliant Kubernetes apps version [v0.31] but also [v0.32.1]

Definition of Done

  • try to see if a root cause for this can be found and fix it

crssnd avatar Oct 13 '23 07:10 crssnd