-
-
Save rupinus85/b9d92758d708f78c77f6809cb9567451 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# kubectl get pod을 이용하여, 로그를 확인할 Pod의 Name을 알아냅니다. | |
$ kubectl get pod | |
NAME READY STATUS RESTARTS AGE | |
gs-spring-boot-docker-deployment-56fb494f67-g2lwr 1/1 Terminating 0 20h | |
gs-spring-boot-docker-deployment-56fb494f67-rfvnv 1/1 Terminating 0 14h | |
gs-spring-boot-docker-deployment-7fbf88754d-6grl7 1/1 Terminating 0 15h | |
gs-spring-boot-docker-deployment-7fbf88754d-7zx7s 1/1 Running 0 14h | |
# kubectl logs 명령어 뒤에 Pod Name을 입력합니다. | |
$ kubectl logs gs-spring-boot-docker-deployment-7fbf88754d-7zx7s | |
. ____ _ __ _ _ | |
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ | |
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ | |
\\/ ___)| |_)| | | | | || (_| | ) ) ) ) | |
' |____| .__|_| |_|_| |_\__, | / / / / | |
=========|_|==============|___/=/_/_/_/ | |
:: Spring Boot :: (v1.5.9.RELEASE) | |
2017-12-07 10:11:44.558 INFO 1 --- [ main] hello.Application : Starting Application v0.1.0 on gs-spring-boot-docker-deployment-7fbf88754d-7zx7s with PID 1 (/app.jar started by root in /) | |
2017-12-07 10:11:44.608 INFO 1 --- [ main] hello.Application : No active profile set, falling back to default profiles: default | |
... | |
2017-12-07 10:11:50.845 INFO 1 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8080 (http) | |
2017-12-07 10:11:50.851 INFO 1 --- [ main] hello.Application : Started Application in 7.797 seconds (JVM running for 9.041) | |
# -f 옵션을 추가하여, streamed log를 확인할 수도 있습니다. | |
$ kubectl logs gs-spring-boot-docker-deployment-7fbf88754d-7zx7s -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment