Comments (5)
This sounds like an issue with flannel connectivity.
kube-dns runs a set of health checks to both dnsmasq and the kube-dns component. If these health checks fail repeatedly, then the pod will be restarted. What I would do is run tcpdump and netcat to see if your packets are being delivered properly.
Regarding the SIGKILL, the behavior is to enable a graceful termination of the DNS service. When the pod is being torn-down, the service is first removed from the cluster IP VIP and sent a SIGTERM, then after the graceful termination period, a SIGKILL is sent.
from dns.
It does seem like there's an issue with flannel. When KubeDNS starts on a non-master node, it can't hit the apiserver, which explains my first problem. I'll try to get that fixed up first, and see if that resolves the second problem.
from dns.
So it seems like pods without host networking can communicate fine across the overlay network, but pods on worker machines can't hit pods that run use hostNetwork on the master. I'll just force the kubedns pod to run on the master for now until I can figure something else out.
Since kubedns is a critical service, I'll eventually have to figure out why it isn't working.
from dns.
I managed to find kubernetes-sigs/kubespray#258 and setting advertise-address
on the kube-apiserver fixed the problem where a pod on the node couldn't hit the apiserver on the master.
Its still failing health checks, so I'll get to fixing that.
from dns.
Well, I figured out the second problem. The liveness health check for the kubedns pod is executed on a port that's exposed for sidecar. I had commented out the sidecar container when I was trying to debug the first problem. So the request was timing out and that's why it was consistently being restarted. Thanks for the help!
from dns.
Related Issues (20)
- NodeLocalDNS not working with custom hosts HOT 7
- Output log as json HOT 3
- Using coredns daemonset instead of nodelocal dns HOT 19
- [Improvement] Add value compatibility for -upstreamsvc HOT 5
- [node-local dns] DNS requests intermittently receive refused response errors HOT 4
- Intermittent timed out accessing nodelocaldns HOT 2
- [NodeLocal DNS Cache] DNS requests not directed to the local cache HOT 2
- pull-kubernetes-dns-test broken at head HOT 2
- Several old CVE's still present on the latest k8s-dns-node-cache versions HOT 4
- Image for 1.22.27 missing HOT 3
- [node-local-dns] Query loss HOT 5
- CVE-2023-5363 and CVE-2023-5528 in 1.22.28 HOT 24
- k8s node-local-dns high slab memory consumption leading to OOM HOT 1
- 1.23.0 is missing from registry.k8s.io/dns/k8s-dns-node-cache HOT 2
- node-local-dns-cache DNS i/o timeout errors
- "make build-amd64" got an error
- LocalDNS support for CoreDNS file plugin
- NodeLocal DNS Cache Intercepts all dns queiris HOT 6
- kube-dns doesn't expose service scoped dns names for pod IPs
- Getting UnkownHostException from SpringBoot Microservice running on top of kubernetes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dns.