Skip to content
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,进虚拟机打印日志为空,在宿主机用kubectl打印日志报没有53端口权限 #18999

Closed
HuXinjing opened this issue Jun 1, 2024 · 1 comment
Labels
l/zh-CN Issues in or relating to Chinese

Comments

@HuXinjing
Copy link


(base) [myname@localhost ~]# kubectl get pod -A
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system coredns-7db6d8ff4d-9sggs 0/1 CrashLoopBackOff 17 (4m32s ago) 45m
kube-system etcd-minikube 1/1 Running 1 (31m ago) 45m
kube-system kube-apiserver-minikube 1/1 Running 1 (31m ago) 45m
kube-system kube-controller-manager-minikube 1/1 Running 1 (31m ago) 45m
kube-system kube-proxy-7nqbx 1/1 Running 1 (31m ago) 45m
kube-system kube-scheduler-minikube 1/1 Running 1 (31m ago) 45m
kube-system storage-provisioner 1/1 Running 3 (30m ago) 45m

(base) [myname@localhost ~]# kubectl logs coredns-7db6d8ff4d-9sggs -n kube-system
Listen: listen tcp :53: bind: permission denied

(base) [lijiaxiang@localhost ]# minikube ssh
docker@minikube:
$ docker ps |grep dns
794972ab8350 registry.k8s.io/pause:3.9 "/pause" 38 minutes ago Up 38 minutes k8s_POD_coredns-7db6d8ff4d-9sggs_kube-system_33c33a6c-1200-4111-a103-a556f5fe5503_1
docker@minikube:$ docker logs k8s_POD_coredns-7db6d8ff4d-9sggs_kube-system_33c33a6c-1200-4111-a103-a556f5fe5503_1
docker@minikube:
$

重现问题所需的命令
(base) [myname@localhost ~]# kubectl get pod -A
(base) [myname@localhost ]# kubectl logs coredns-7db6d8ff4d-9sggs -n kube-system
(base) [lijiaxiang@localhost ]# minikube ssh
docker@minikube:
$ docker ps |grep dns
docker@minikube:
$ docker logs k8s_POD_coredns-7db6d8ff4d-9sggs_kube-system_33c33a6c-1200-4111-a103-a556f5fe5503_1

失败的命令的完整输出


Listen: listen tcp :53: bind: permission denied

minikube logs命令的输出


没有logs

使用的操作系统版本
centos 7

@HuXinjing HuXinjing added the l/zh-CN Issues in or relating to Chinese label Jun 1, 2024
@medyagh
Copy link
Member

medyagh commented Jun 4, 2024

seems to be duplicate of #18950 closing this one, please track this issue
#18950

@medyagh medyagh closed this as completed Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
l/zh-CN Issues in or relating to Chinese
Projects
None yet
Development

No branches or pull requests

2 participants