Bug 27935 - k8s coredns 初始化会失败
Summary: k8s coredns 初始化会失败
Status: NEW
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: BaseOS Packages (show other bugs) BaseOS Packages
Version: 23.4
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: happy_orange
QA Contact: bolong_tbl
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-10 10:57 UTC by panpingsheng
Modified: 2025-12-10 10:57 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description panpingsheng hygon_group 2025-12-10 10:57:46 UTC
Description of problem:

k8s coredns 初始化会失败
	
始化后修复coredns异常 方法:

cp /etc/resolv.conf /etc/resolv.conf.bak
echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf
#必须移除 127.0.0.53,仅保留外部 DNS(如 8.8.8.8)

停止并禁用 systemd-resolved
sudo systemctl stop systemd-resolved
sudo systemctl disable systemd-resolved
systemctl restart kubelet
#重建 CoreDNS Pod
kubectl delete pod -n kube-system -l k8s-app=kube-dns

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info: