You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem with configuring ConsulDNS in Kubernetes.
I read the documentation: https://developer.hashicorp.com/consul/docs/k8s/dns/enable#coredns-configuration
I add this piece to the end of my ConfigMap. I reload all pods, reload all injected pods. Nothing happens. The consul just doesn't appear in /etc/resolv.conf.
I also have NodeLocalDNS. I think the problem is in it because it is responsible for the DNS on the node where the pod is running.
When I add a piece of code with consul to NodeLocalDNS ConfigMap, the Pod does not start, and I get this error. What am I doing wrong? This is how the config files looks.
2024/10/25 02:56:02 [INFO] Starting node-cache image: 1.22.28
2024/10/25 02:56:02 [INFO] Using Corefile /etc/coredns/Corefile
2024/10/25 02:56:02 [INFO] Using Pidfile
2024/10/25 02:56:02 [ERROR] Failed to read node-cache coreFile /etc/coredns/Corefile.base - open /etc/coredns/Corefile.base: no such file or directory
2024/10/25 02:56:02 [INFO] Skipping kube-dns configmap sync as no directory was specified
Listen: listen tcp :53: bind: address already in use
Thanks for the help
The text was updated successfully, but these errors were encountered:
Hello,
I have a problem with configuring ConsulDNS in Kubernetes.
I read the documentation: https://developer.hashicorp.com/consul/docs/k8s/dns/enable#coredns-configuration
I add this piece to the end of my ConfigMap. I reload all pods, reload all injected pods. Nothing happens. The consul just doesn't appear in /etc/resolv.conf.
I also have NodeLocalDNS. I think the problem is in it because it is responsible for the DNS on the node where the pod is running.
When I add a piece of code with consul to NodeLocalDNS ConfigMap, the Pod does not start, and I get this error. What am I doing wrong? This is how the config files looks.
Consul DNS Service IP: 10.233.53.111
coredns
nodelocaldns
System info
Kubernetes 1.29.4
Helm chart App version 1.20
Version 1.6.0
Image: hashicorp/consul-k8s-control-plane:1.6.0
NodeLocalDNS pod logs after restart
Thanks for the help
The text was updated successfully, but these errors were encountered: