kubernetes [CKA] - Pod 2
문제 2 pod "custom-app"의 log를 모니터링하고 "file not found"메세지를 포함하는 로그라인을 추출하시오. 추줄된 결과는 /opt/REPORT/2022/custom-app-log에 기록하시오. // 작업중인 환경 확인 kubectl config current-context // k8s 클러스터 이동 kubectl config use-context hk8s // 동작중인 클러스터에서 custom-app 을 확인 kubectl get pods kubectl logs custom-app | grep 'file not found' kubectl logs custom-app | grep 'file not found' > /opt/REPORT/2022/custom-app-log // 확인 ..
cka
2023. 6. 18. 23:52