CoreDNS can run in place of the standard Kube-DNS in Kubernetes. Using the kubernetes middleware, CoreDNS will read zone data from a Kubernetes cluster.
Questions tagged [coredns]
201 questions
15
votes
4 answers
How to patch a ConfigMap in Kubernetes
Kubernetes ships with a ConfigMap called coredns that lets you specify DNS settings. I want to modify or patch a small piece of this configuration by adding:
apiVersion: v1
kind: ConfigMap
data:
upstreamNameservers: |
["1.1.1.1", "1.0.0.1"]
I…
![](../../users/profiles/1212017.webp)
Muhammad Rehan Saeed
- 28,236
- 27
- 169
- 261
13
votes
6 answers
CoreDNS fails to run in Kubernetes cluster
I'm trying to setup a Kubernetes cluster, but I cannot get CoreDNS running. I've ran the following to start the cluster:
sudo swapoff -a
sudo sysctl net.bridge.bridge-nf-call-iptables=1
sudo kubeadm init
mkdir -p $HOME/.kube
sudo cp -i…
![](../../users/profiles/3959140.webp)
jvj
- 398
- 1
- 4
- 11
9
votes
2 answers
How can I get CoreDNS to resolve on my Raspberry Pi Kubernetes cluster?
I've followed a number of online tutorials to set up a Kubernetes cluster on four Raspberry Pi 4s. I ended up using Flannel as the networking plugin as that seems to be the only one that actually works on RPi, with a pod network CIDR of…
![](../../users/profiles/5454.webp)
soapergem
- 7,597
- 16
- 79
- 124
7
votes
1 answer
Kubernetes pod resolve external kafka hostname in coredns not as hostaliases inside pod
I am having spring boot app where in application.property we are specifying below properties. kafka is installed on remote machine with self-signed certificate (outside the kubernete…
![](../../users/profiles/1184777.webp)
user1184777
- 847
- 1
- 16
- 35
7
votes
1 answer
Kubernetes DNS intermittently failing with kube-dns service and CoreDNS pods seeming OK
We have a Kubernetes cluster with 1 master and 3 nodes managed by kops that we use for our application deployment. We have minimal pod-to-pod connectivity but like the autoscaling features in Kubernetes. We've been using this for the past few months…
![](../../users/profiles/3613550.webp)
Ruby
- 498
- 2
- 14
7
votes
3 answers
Flush CoreDNS Cache on Kubernetes Cluster
How to flush CoreDNS Cache on kubernetes cluster?
I know it can be done by deleting the CoreDNS pods, but is there a proper way to to the cache flush ?
![](../../users/profiles/6822338.webp)
Fauzan
- 435
- 5
- 10
7
votes
2 answers
How do I force Kubernetes CoreDNS to reload its Config Map after a change?
I'm running Kubernetes 1.11, and trying to configure the Kubernetes cluster to check a local name server first. I read the instructions on the Kubernetes site for customizing CoreDNS, and used the Dashboard to edit the system ConfigMap for CoreDNS.…
![](../../users/profiles/6526719.webp)
E. Wittle
- 169
- 1
- 3
- 8
6
votes
1 answer
How to change running pods limits in Kubernetes?
I have a self made Kubernetes cluster consisting of VMs. My problem is, that the coredns pods are always go in CrashLoopBackOff state, and after a while they go back to Running as nothing happened.. One solution that I found and could not try yet,…
![](../../users/profiles/10695889.webp)
B.G.
- 213
- 3
- 7
5
votes
1 answer
Resolving external domains from within pods does not work
What happened
Resolving an external domain from within a pod fails with SERVFAIL message. In the logs, i/o timeout error is mentioned.
What I expected to happen
External domains should be successfully resolved from the pods.
How to reproduce…
![](../../users/profiles/388664.webp)
Nikola Malešević
- 1,563
- 4
- 17
- 39
5
votes
1 answer
Kubernetes DNS lookup issue and "invalid" in the /etc/resolv.conf file
I have deployed a Kubernetes cluster composed of a master and two workers using kubeadm and the Flannel network driver (So I passed the --pod-network-cidr=10.244.0.0/16 flag to kubeadm init).
Those nodes are communicating together using a VPN so…
![](../../users/profiles/1996540.webp)
ZedTuX
- 2,275
- 2
- 20
- 47
5
votes
1 answer
Debugging DNS resolutions in kubernetes
I have initialized kubernetes v1.13.1 cluster on Ubuntu 16.04 using below command:
sudo kubeadm init --token-ttl=0 --apiserver-advertise-address=192.168.88.142
and installed weave using:
kubectl apply -f…
![](../../users/profiles/6243129.webp)
S Andrew
- 4,456
- 11
- 57
- 126
5
votes
5 answers
Kubernetes CoreDNS in CrashLoopBackOff
I understand that this question is asked dozen times, but nothing has helped me through internet searching.
My set up:
CentOS Linux release 7.5.1804 (Core)
Docker Version: 18.06.1-ce
Kubernetes: v1.12.3
Installed by official guide and this…
![](../../users/profiles/824684.webp)
Hakon89
- 879
- 1
- 8
- 14
4
votes
1 answer
DNS error with MySQL integration with kubernetes cluster
What happened:
I am trying to create a service endpoint using the externalName spec to allow my microservices running inside the pods to access a local MySQL server on my local host.
This is the relevant section for the yaml file:
apiVersion: v1…
![](../../users/profiles/11166699.webp)
Juin
- 63
- 7
4
votes
0 answers
Kubernetes pods unable to resolve host :
I have setup an Azure Kubernetes Cluster using kubenet plugin. All pods and services are running. Also, when I do a kubectl get pods -n kube-system all pods are running.
The issue I have is, the pods are unable to connect to other pods via…
![](../../users/profiles/129398.webp)
jack
- 1,308
- 6
- 23
- 40
4
votes
3 answers
Kubernetes coredns readiness probe failed
I have setup a Kubernetes cluster with one master (kube-master) and 2 slaves (kube-node-01 and kube-node-02)
All was running fine ... now after debian stretch -> buster upgrade my coredns pods are failing with CrashLoopBackOff for some reason.
I did…
![](../../users/profiles/1822033.webp)
Pascal
- 1,797
- 2
- 23
- 44