kubectl logs

1 개요[ | ]

kubectl log
kubectl logs

2 실행예시 1[ | ]

$ kubectl get pods
NAME                                   READY     STATUS    RESTARTS  AGE
kubernetes-bootcamp-5dbf48f7d4-pwr7b   1/1       Running   0  3m
$ kubectl logs kubernetes-bootcamp-5dbf48f7d4-pwr7b
Kubernetes Bootcamp App Started At: 2018-04-20T11:44:50.833Z | Running On:  kubernetes-bootcamp-5dbf48f7d4-pwr7b

3 실행예시 2[ | ]

$ kubectl logs -f nginx-app-zibvs
10.240.63.110 - - [14/Jul/2015:01:09:01 +0000] "GET / HTTP/1.1" 200 612 "-" "curl/7.26.0" "-"
10.240.63.110 - - [14/Jul/2015:01:09:02 +0000] "GET / HTTP/1.1" 200 612 "-" "curl/7.26.0" "-"
$ kubectl logs --previous nginx-app-zibvs
10.240.63.110 - - [14/Jul/2015:01:09:01 +0000] "GET / HTTP/1.1" 200 612 "-" "curl/7.26.0" "-"
10.240.63.110 - - [14/Jul/2015:01:09:02 +0000] "GET / HTTP/1.1" 200 612 "-" "curl/7.26.0" "-"

4 같이 보기[ | ]

5 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}