TroubleShooting/Kubernetes

Host DNS 설정 변경 시, CoreDNS 파드 재시작 필요

IT록흐 2025. 5. 7. 19:54
반응형

 

 

GPU Operator로 Nvidia Driver 파드를 띄우는 과정에서 DNS 관련 resolving 에러가 발생하였다. 

 

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease  Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease  Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-security/InRelease  Temporary failure resolving 'archive.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Could not resolve Linux kernel version

 

 

확인해보니, /etc/netplan/00-installer-config.yaml 에 DNS IP 설정이 되어 있지 않았다.

노드에 DNS 설정을 한 뒤, Kubernetes의  coreDNS도 재시작 해주어야 한다. 

 

kubectl rollout restart deployment coredns -n kube-system
반응형