官术网_书友最值得收藏!

Getting logs from your application

Just like the Python example, the Node.js example sends some output to STDOUT. As the containers are specifically set up to capture any output to STDOUT and STDERR from the executable you've specified and capture that into logs, the same commands will work to show you the log output from the Node.js application:

kubectl logs nodejs-568183341-2bw5v

This should show you output akin to the following:

> kfd-nodejs@0.0.0 start /src
> node ./bin/www
Sat, 16 Sep 2017 10:06:41 GMT kfd-nodejs:server Listening on port 3000
GET / 304 305.615 ms - -
GET /favicon.ico 404 54.056 ms - 855
GET /stylesheets/style.css 200 63.234 ms - 111
GET / 200 48.033 ms - 170
GET /stylesheets/style.css 200 1.373 ms - 111
主站蜘蛛池模板: 水城县| SHOW| 馆陶县| 乾安县| 贵州省| 塔河县| 永新县| 奉节县| 克拉玛依市| 那坡县| 西藏| 海晏县| 开远市| 八宿县| 雷波县| 资兴市| 华蓥市| 祁东县| 内江市| 乌兰县| 大化| 象州县| 新沂市| 阜新| 潼南县| 博兴县| 五台县| 美姑县| 榆社县| 雅安市| 龙泉市| 台南市| 渝中区| 浦城县| 日照市| 隆昌县| 句容市| 普格县| 日土县| 芮城县| 定边县|