CoreDNS가 아래와 같이 CrashLoopBackOff 상태로 계속해서 restart될 때가 있다.

아래와 같은 로그가 뜨는 것을 확인할 수 있었다.
plugin/loop: Loop (127.0.0.1:55953 -> :1053) detected for zone ".", see https://coredns.io/plugins/loop#troubleshooting.
# 방법 1
CoreDNS ConfigMap을 수동으로 편집해야 한다.
kubectl edit cm coredns -n kube-system
ConfigMap의 loop 부분을 지우고 저장한 뒤, 해당 파드를 restart시키면 정상작동 된다.

# 방법 2
$ vi /etc/resolv.conf
resolv.conf 파일에 nameserver 8.8.8.8을 추가해준다.
master와 worker node에 대해서 모두 수행한 후, coredns pod를 restart 시켜준다.
https://waspro.tistory.com/564
Kubernetes - coredns CrashLoopBackOff & Restarting 현상 조치방안
본 포스팅에서는 Kubernetes 구축 시 CoreDNS의 CrashLoopBackOff Status 발생 및 지속적인 Restarting 현상에 대한 해결방안에 대해 다뤄보도록 하겠습니다. Kubernetes를 구축하다보면 정말 많은 이슈들에 직면..
waspro.tistory.com
https://github.com/kubernetes/kubeadm/issues/1688
Coredns pods on master are in CrashLoopBackOff after setting up pod networking · Issue #1688 · kubernetes/kubeadm
Is this a request for help? Yes, have tried most of the troubleshooting but nothing seems to work. What keywords did you search in kubeadm issues before filing this one? CrashLoopBackOff, Coredns, ...
github.com
'Kubernetes' 카테고리의 다른 글
Volume에 대해 알아보자 [pv, pvc, storage class] - 2 (0) | 2022.01.07 |
---|---|
1. 쿠버네티스 소개하기 (0) | 2022.01.07 |
The connection to the server <host>:6443 was refused - did you specify the right host or port? (0) | 2022.01.06 |
pod pv pvc 강제 삭제하기 (0) | 2022.01.06 |
Volume에 대해 알아보자 [emptyDir, hostpath] - 1 (0) | 2022.01.05 |