-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
coredns Crashloopbackoff Listen: listen tcp :53: bind: permission denied #11690
Comments
I can't reproduce this. What sort of environment is this in? What linux distribution are you using? Is selinux enabled on your nodes, and if so, have you installed the correct selinux packages and enabled selinux in the k3s config? |
install k3s airgap on kvm virtual machine, linux distribution is openEuler, selinux is disabled.
|
The coredns deployment grants the container NET_BIND_SERVICE capability which allows it to bind to privileged ports. Had you previously modified the coredns deployment yaml to remove this capability? Lines 151 to 153 in 6100f5c
|
I does not modified the coredns deployment yaml. It doesn't work on my os environment. If you have time, repeat as follows: install OS install Docker
install k3s v1.31.5+k3s1 airgap with docker engine install k3s v1.30.4-k3s1 airgap with docker engine, and compare their differences of coredns |
The pod has sufficient privilege to listen on that port. You'll need to figure out what other security module on your node is blocking it. |
Ahh, I see that you're using Docker. That is probably relevant , but you'd not mentioned that until now. Can you use containerd instead?
K3s does not manage the runtime configuration if you're using Docker, so you'll need to modify the containerd config (for the containerd that comes with docker) on your own. Preferably you'd just use the containerd that comes with k3s though. |
OK,let me try |
rancher/mirrored-coredns-coredns:1.12.0
Listen: listen tcp :53: bind: permission denied
Environmental Info:
K3s Version:
Node(s) CPU architecture, OS, and Version:
Cluster Configuration:
3 servers, 3 agents
Describe the bug:
k3s install success, but coredns deploy failed.
please fix it. it's ok on k3s v1.30.4-k3s1
The text was updated successfully, but these errors were encountered: