CKA &. CKAD/Troubleshooting (6) 썸네일형 리스트형 kubelet 주요 이슈 확인 kubelet이 기동할때 호출되는 구성요소 $ service kubelet status ● kubelet.service - kubelet: The Kubernetes Node Agent Loaded: loaded (/lib/systemd/system/kubelet.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/kubelet.service.d └─10-kubeadm.conf Active: active (running) since Thu 2021-04-08 07:05:20 UTC; 3min 13s ago Docs: https://kubernetes.io/docs/home/ Main PID: 30579 (kubelet) Tasks.. Network Troubleshooting [Network Plugin in kubernetes] Kubernetes uses CNI plugins to setup network. The kubelet is responsible for executing plugins as we mention the following parameters in kubelet configuration. Kubernetes는 CNI Plugin을 사용하여 네트워크를 설정한다. kubelet은 kubelet 구성에서 다음 매개 변수를 언급하므로 플러그인 실행을 담당한다. - cni-bin-dir: Kubelet은 기동 시 이 디렉토리에서 플러그인에 대해 조사한다. - network-plugin: cni-bin-dir에서 사용할 네트워크 플러그인이다. plugin 디렉토리.. Practice Test - Node Failure (kubelet) ㅁ kubelet.conf 파일 위치 /etc/systemd/system/kubelet.service.d/ 아래에 10-kubeadm.conf 내용을 보면 주요 설정 내용이 있다 $ cat /etc/systemd/system/kubelet.service.d/10-kubeadm.conf # Note: This dropin only works with kubeadm and kubelet v1.11+ [Service] Environment="KUBELET_KUBECONFIG_ARGS=--bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf" Environment="KUBELET_CO.. Worker Node Failure ㅁ Check Node Status $ kubectl get nodes $ kubectl describe node worker-1 $ kubectl describe node worker-2 ㅁ Check Node top df -h $ service kubelet status sudo journalctl -u kubelet ㅁ Check Certificates openssl x509 -in /var/lib/kubelet/worker-1.crt -text Control Plane Failure ㅁ Check Node Status kubectl get nodes kubectl get pods ㅁ Check Controlplane Pods kubectl get pods -n kube-system service kube-apiserver status service kube-controller-manager status service kube-scheduler status service kubelet status service kube-proxy status ㅁ Check Service Logs kubectl logs kube-apiserver-master -n kube-system sudo journalctl -u kube-apiserver https://kubernetes.io/docs/tasks.. Application Failure Check Accessibility Remeber to check every object and link in this map until you find the root cause of the issue. users report some issue with accessing the application. [First, we start with the application front-end.] Use standard ways of testing if your application is accessible. If it's a web application, check if the web server is accessible on the IP of the node-port using curl. curl http.. 이전 1 다음