본문 바로가기
cloud/k8s(문제풀이)

[cka]kodekloud-Managing Application Logs

by mozi2 2022. 6. 13.
반응형

1. We have deployed a POD hosting an application. Inspect it. Wait for it to start.

# k get pods

2.A user - USER5 - has expressed concerns accessing the application. Identify the cause of the issue.

   Inspect the logs of the POD

# k logs webapp-1

3. We have deployed a new POD - webapp-2 - hosting an application. Inspect it. Wait for it to start.

4.A user is reporting issues while trying to purchase an item. Identify the user and the cause of the issue

   Inspect the logs of the webapp in the POD

# k get pods 
# k logs webapp-2
# k logs webapp-2 simple-webapp

 : webapp-2 의 로그를 입력했더니 "simple-webapp 혹은 db 중에 선택하라는 옵션이 나왔음

 : 문제자체는 webapp 의 이슈를 확인해 simple-webapp을 선택

 : 관련되어 로그 확인 

 : 로그는 총 2개가 나왔으나, 선택지에 USER5 와 관련된 로그는 없기에 USER30으로 결정 

 

 

728x90
반응형