Notice
Recent Posts
Recent Comments
Link
푸잉이의 기술블로그
[Day21] Certified Kubernetes Administrator (CKA) with Practice Tests 본문
IT/Kubernetes
[Day21] Certified Kubernetes Administrator (CKA) with Practice Tests
data고수 2023. 1. 31. 01:49Section 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
'IT > Kubernetes' 카테고리의 다른 글
| [Kubernetes] CKA Certification 취득 후기 및 TIP (0) | 2023.02.16 |
|---|---|
| [Day22] Certified Kubernetes Administrator (CKA) with Practice Tests (0) | 2023.02.01 |
| [Day20] Certified Kubernetes Administrator (CKA) with Practice Tests (0) | 2023.01.28 |
| [Day19] Certified Kubernetes Administrator (CKA) with Practice Tests (0) | 2023.01.27 |
| [Day18] Certified Kubernetes Administrator (CKA) with Practice Tests (1) | 2023.01.26 |
Comments