在这个章节创建了web.yaml,但log-pilot没有数据?
来源:12-2 logpilot+elasticsearch+kibana日志实践
eddie_k2
2020-05-25
创建pod
[root@m1 11-logs]# kubectl apply -f web.yaml
deployment.apps/web-demo created
service/web-demo created
ingress.extensions/web-demo created
[root@m1 11-logs]#
[root@m1 11-logs]# kubectl get pods -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
glusterfs-84qlb 1/1 Running 0 44h 192.168.8.133 gluster-03 <none> <none>
glusterfs-bnkg7 1/1 Running 0 44h 192.168.8.132 gluster-02 <none> <none>
glusterfs-nskmb 1/1 Running 0 44h 192.168.8.131 gluster-01 <none> <none>
heketi-88cc44c56-8z5zg 1/1 Running 0 44h 172.22.1.215 s1 <none> <none>
k8s-web-demo-96b497f9d-z8bxc 1/1 Running 2 5d6h 172.22.1.209 s1 <none> <none>
tomcat-demo-6bc7d5b6f4-6zxq7 1/1 Running 2 13d 172.22.2.39 s2 <none> <none>
web-demo-7cdf8c5867-97bjj 1/1 Running 0 15s 172.22.5.12 gluster-02 <none> <none>
web-demo-7cdf8c5867-njcl9 1/1 Running 0 15s 172.22.6.6 gluster-01 <none> <none>
web-demo-7cdf8c5867-xj95r 1/1 Running 0 15s 172.22.1.230 s1 <none> <none>
web-deploy-6cb6db478f-fjwvb 1/1 Running 0 33h 172.22.1.220 s1 <none> <none>
web-deploy-6cb6db478f-z8qbb 1/1 Running 0 33h 172.22.4.2 gluster-03 <none> <none>
查看日志
[root@m1 10-statefulset]# docker ps |grep log-pilot
2922dae2705a registry.cn-hangzhou.aliyuncs.com/imooc/log-pilot@sha256:555b080c32f3187947980d7ccf84fa0749caadffb58c691e870202084a9fcd7d "/pilot/entrypoint" About an hour ago Up About an hour k8s_log-pilot_log-pilot-b6xd8_kube-system_10559758-9e5d-11ea-a960-0c9d92777614_0
d66d6a2f2268 registry.cn-hangzhou.aliyuncs.com/imooc/pause:3.1 "/pause" About an hour ago Up About an hour k8s_POD_log-pilot-b6xd8_kube-system_10559758-9e5d-11ea-a960-0c9d92777614_0
[root@m1 10-statefulset]#
[root@m1 10-statefulset]#
[root@m1 10-statefulset]#
[root@m1 10-statefulset]# docker logs -f 2922d
enable pilot: filebeat
time="2020-05-25T07:55:32Z" level=debug msg="2922dae2705aa6512d841d6999957c551e5f4cc8493fc0297eb3ff210ba72577 has not log config, skip"
time="2020-05-25T07:55:32Z" level=debug msg="d66d6a2f2268967ce23bed6d27de344214cbef5a5fa8055f5b1abbf894056715 has not log config, skip"
time="2020-05-25T07:55:32Z" level=debug msg="990cc51598c21373c7e05e34ba193825aaf53fa96157a365ddb1bf18eb0d6460 has not log config, skip"
time="2020-05-25T07:55:32Z" level=debug msg="1f1999ba3f35444fb84c0a6e2c929e5571bac1d901af210141749dfa23838b2c has not log config, skip"
time="2020-05-25T07:55:32Z" level=debug msg="b9e9428f5dece74c64beffa405d24d70b090d0083fe88d4c00aa0bd52b218306 has not log config, skip"
time="2020-05-25T07:55:32Z" level=debug msg="5c16b28fd036701deccd0d03f3969219ed4a584af922e7759c65eb2386ef696a has not log config, skip"
time="2020-05-25T07:55:32Z" level=debug msg="0c1b724595a6a10a4ed74fdfbf81732dd753ad9490475d15aec2c534cd5fbc39 has not log config, skip"
time="2020-05-25T07:55:32Z" level=debug msg="80c356805c72c60167614481bc8bce011baf7176b1bf691337a4fc79f4bbaf38 has not log config, skip"
time="2020-05-25T07:55:32Z" level=debug msg="1329840eed9ffd5a60cdb2dc549a0f62e34a3a58096aab37c34b96051feb6242 has not log config, skip"
time="2020-05-25T07:55:32Z" level=debug msg="e559beec49b1280a612e717a08b6de7925b1ad85ce09de5f846adbe6c976d552 has not log config, skip"
time="2020-05-25T07:55:32Z" level=debug msg="e53266ea9f462048db2e972dd2cdf97122a7a3f53cc2c7047dfd219a2302f51e has not log config, skip"
time="2020-05-25T07:55:32Z" level=debug msg="1c0e2f6a514ace4871dcd116d48f6c7766b76d5707c01fbb94283075b6ad45f9 has not log config, skip"
time="2020-05-25T07:55:32Z" level=debug msg="fa8a25cea396a2474aa57aaaa77c4b21f1dd1f45a984cb1cbf1b52a622e9a969 has not log config, skip"
time="2020-05-25T07:55:32Z" level=debug msg="6d1d7fd2d931be59206772fac75da445c1b0afa5eafa614d412f4840f6efd756 has not log config, skip"
time="2020-05-25T07:55:32Z" level=debug msg="0968918d8611ee48ec35ccabaafa1b646508a9482a48990a577526e579d47a0d has not log config, skip"
time="2020-05-25T07:55:32Z" level=debug msg="6cf5d8b9538a2224457e2b2dda1151430fd28a3eda1f686698aa03c76ec0fc64 has not log config, skip"
time="2020-05-25T07:55:32Z" level=debug msg="ef653c0df87ff56eb0af3f64f93afc5398bb5b013b009b7fe1f6e09df481c519 has not log config, skip"
time="2020-05-25T07:55:32Z" level=debug msg="12c89ad19256b8447c10045e9eae47131a3537ec4249ce026e3ccec2d22b7962 has not log config, skip"
time="2020-05-25T07:55:32Z" level=debug msg="675df2805f506614a6f67d6c5d133e5f26a4ed018bfbd86759d82fd732f4bf4d has not log config, skip"
time="2020-05-25T07:55:32Z" level=info msg="start filebeat"
time="2020-05-25T07:55:32Z" level=info msg="filebeat watcher start"
time="2020-05-25T07:55:32Z" level=info msg="Reload gorouting is ready"
创建web.yaml之后, log-pilot的容器日志没有数据的呢? 一直卡住 Reload gorouting is ready 这里的呢
写回答
2回答
-
刘果国
2020-05-26
你好,请按照课程的步骤来,es、kibana是需要先做的。另外确保web.yaml按要求配置了logpilot的内容
062020-05-27 -
eddie_k2
提问者
2020-05-25
求解答
00
相似问题