망지로그

CKA -trouble shooting 본문

Kubernetes

CKA -trouble shooting

망지v 2024. 7. 4. 18:30

 

1. svc name이 잘 맞게 설정되어있는지 확인 

- 웹 pod에서 DB_host = (db pod svc name)

 

2. pod와 연결된 svc 의 target port가 pod의 port와 동일한지 확인 

 

3. pod의 label과 svc selector가 일치하는지 확인

 

control plane 이슈

1. -n kubesystem pod 상태 확인

2. service (ku-) status 명령어 활용

3. log 확인

4. journalctl

5. 기본 서비스들 static pod '/etc/kubernetes/manifests/' 여기 경로에서 수정

6. volume mounts, volume- mout path 확인

 

node

0. ssh node로 해당 서버접근하기

1. top,ps

2.kubelet 등 서비스 켜져있는지 확인 (status)

3. journalctl -u kubelet -f

4. kubelet config path /var/lib/kubelet/config.yaml

https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet/

 

kubelet

Synopsis The kubelet is the primary "node agent" that runs on each node. It can register the node with the apiserver using one of: the hostname; a flag to override the hostname; or specific logic for a cloud provider. The kubelet works in terms of a PodSpe

kubernetes.io

 /etc/kubernetes/kubelet.conf

'Kubernetes' 카테고리의 다른 글

CKA  (0) 2024.07.05
CKA - jsonpath  (0) 2024.07.05
CKA- kubeadm  (0) 2024.07.04
CKA - ingress  (0) 2024.07.04
CKA - core DNS in k8s  (0) 2024.07.03