쿠버네티스 트러블슈팅

    [CKA독학] 트러블 슈팅 - Network troubleshooting

    Network troubleshooting 쿠버네티스의 네트트워크 이슈는 Network Plugin 이슈와 Kube Proxy이슈가 있을 수 있습니다. 오늘은 이 두가지 이슈를 어떻게 해결하는지 살펴 보도록 하겠습니다. Network Plugin 이슈 대표적인 Network Plugin 종류 Weave Net Flannel Calico Network Plugin설치 확인 네임스페이스 kube-system에 network plugin관련 pod가 동작하고 있는지 확인 kubectl get pod -n kube-system 동작하고 있지 않다면 해당 URL을 참고하여 Network plugin 설치 https://kubernetes.io/docs/concepts/cluster-administration/ad..

    [CKA독학] 트러블 슈팅 - Worker Node Failure

    Worker Node Failure WorkerNode에 생길 수 있는 이슈로는 kubelet이 제대로 동작하지 않는 경우 입니다. kueblet이 동작하지 않는 원인을 찾고 해결하는 과정을 정리해보도록 하겠습니다. Case Not reday상태의 WorkerNode에서 kubelet이 죽어있는 경우 - inactive(dead) Not reday상태의 WorkerNode에서 kubelet이 활성화 되고 있는 중인 경우 - activating(auto-restart) Not reday상태의 WorkerNode에서 kubelet이 동작하고 있는 경우 - active(running) WorkerNode의 kubelet이 죽어있는 경우 - inactive(dead) Node상태 확인 kubectl get no..

    [CKA독학] 트러블 슈팅 - Control Plane Failure

    Control Plane Failure Control Plane에 생길 수 있는 이슈로는 스케줄러, 컨트롤러 매니저, api서버, etcd 등이 제대로 동작하지 않는 이슈가 있을 수 있습니다. Control Plane에서 동작하는 pod 들을 static pod라고 하며, static pod에 대한 yaml파일은 특정 폴더에 위치해 있습니다. 오늘은 Control Plane Failure가 발생하였을경우, static pod yaml의 위치를 파악하여 이를 해결 하는 방법을 알려 드리도록 하겠습니다. static pod etcd.yaml kube-apiserver.yaml kube-controller-manager.yaml kube-scheduler.yaml static pod 이슈 kube-schedu..

    [CKA독학] 트러블 슈팅 - Application Failure

    Application Failure Pod 상태가 running으로 이상이 없지만 Application이 잘동작하지 않는 경우는 아래와 같이 구분할 수 있습니다. case Service 이슈 port 설정 이슈 (port/targetport/nodeport) selector 설정 이슈 Pod/Deployment 이슈 pod/Deployment의 컨테이너 환경변수 이슈 Service 설정 이슈 svc 의 port또는 targetport가 잘못 설정 되어있는 경우 모든 리소스 확인 kubectl get all -n pod가 이상없이 잘 동작하고 있다면,서비스의 설정 확인 (port/targetport) kubectl describe svc -n 이상 발견 : 서비스의 (port/tagetport) 정보를 알..