리그캣의 개발놀이터

[ kubernetes ] 고아 pods orphaned pod "" found, but volume paths are still present on disk : There were a total of 1 errors similar to this. Turn up verbosity to see them. 본문

인프라/Docker

[ kubernetes ] 고아 pods orphaned pod "" found, but volume paths are still present on disk : There were a total of 1 errors similar to this. Turn up verbosity to see them.

리그캣 2020. 8. 14. 18:55

해당 문제 해결 방법

kubelet log 중 아래와 같은 로그가 찍혔다..

orphaned pod "b8a5865c-99b6-4e8c-8adc-ff2962ddb2b1" found, but volume paths are still present on disk : There were a total of 1 errors similar to this. Turn up verbosity to see them.

말하자면 b8a5865c-99b6-4e8c-8adc-ff2962ddb2b1 파드에 대한 볼륨이 남아있다 ? 라는 것 같은데

해당 pods에 대한 정보를 찾을 수 없었다..

$ kubectl get pods | grep b8a5865c-99b6-4e8c-8adc-ff2962ddb2b1

나오지 않았고 path를 확인해보니

$ cd /var/lib/kubelet/pods/

안에 해당 pod에대한 정보를 확인할 수 있었다

$ cd /var/lib/kubelet/pods/b8a5865c-99b6-4e8c-8adc-ff2962ddb2b1
$ cat cd /var/lib/kubelet/pods/b8a5865c-99b6-4e8c-8adc-ff2962ddb2b1/etc-hosts

해당 폴더를 삭제해주면 해결된다

$ rm -rf /var/lib/kubelet/pods/b8a5865c-99b6-4e8c-8adc-ff2962ddb2b1
Comments