푸잉이의 기술블로그

[Day21] Certified Kubernetes Administrator (CKA) with Practice Tests 본문

IT/Kubernetes

[Day21] Certified Kubernetes Administrator (CKA) with Practice Tests

data고수 2023. 1. 31. 01:49

Section 13: Troubleshooting

248강. Application Failure

<Check accessibility>

1. -web application 인 경우

curl을 사용하여 web server가 Node port의 ip에 접근할 수 있는지 체크

Curl http://web-service-ip:node-port

 

2. web-service

kubectl describe service web-service

-> web-server의 selector과 pod의 metadata name 이름이 같은지 확인

 

3. Check pod

kubectl get pod 해서 상태가 running인지 확인 

-> kubectl describe pod <pod name>

kubectl logs <pod name>

-> 만약 pod이 failure 때문에 restraing 되면, 컨테이너의 현재 버전이 반영되지 않을 것이다. 

kubectl logs <pod name> -f 

: wait for the application to fail again

 

4. DB pod

Comments