CC00279.CloudKubernetes——|KuberNetes&运维.V01|——|EFK架构.v01|概述|3台Server|

一、EFK日志收集概述:
### --- EFK架构: 

~~~		ElasticSearch + Fluentd + Kibana:收集宿主机上的日志
~~~     主要用于收集宿主机上的日志
~~~     Fluentd是轻量级的,比较适合在容器中部署
### --- k8s常用的组件都放在addons这个里面

~~~     地址:https://github.com/kubernetes/kubernetes/tree/master/cluster/addons
CC00279.CloudKubernetes——|KuberNetes&运维.V01|——|EFK架构.v01|概述|3台Server|_第1张图片
二、filebeat组件地址:Filebeat:https://github.com/dotbalo/k8s/tree/master/fklek/6.x
CC00279.CloudKubernetes——|KuberNetes&运维.V01|——|EFK架构.v01|概述|3台Server|_第2张图片
三、EFK:在k8s中,我们主要收集的是/var/log/containers下的日志
### --- 在k8s中,我们主要收集的是/var/log/containers下的日志
~~~     注:它是被软连接来的 

[root@k8s-master01 ~]# ls -l /var/log/containers/
total 0
lrwxrwxrwx 1 root root 133 May 19 12:58 calico-kube-controllers-5f6d4b864b-s24xt_kube-system_calico-kube-controllers-3367709aa4a6d8e52c59648205896e014136087847bc222c910273baa0693899.log -> /var/log/pods/kube-system_calico-kube-controllers-5f6d4b864b-s24xt_9253141c-02db-458b-b7e6-4cb690ed6f56/calico-kube-controllers/0.log
lrwxrwxrwx 1 root root  98 May 22 11:35 calico-node-w79vx_kube-system_calico-node-93df754ddb23d04fa8d602d3c81c19dc9909c0d8f9f544c85b66a74650db8458.log -> /var/log/pods/kube-system_calico-node-w79vx_1c6abb6d-f223-40e9-a8d1-91bf05aa15aa/calico-node/5.log
lrwxrwxrwx 1 root root 101 May 10 20:27 calico-node-w79vx_kube-system_flexvol-driver-bb9a47ef07a187679a23b48d2291f58c84646786e10655acce90a2d17b172d23.log -> /var/log/pods/kube-system_calico-node-w79vx_1c6abb6d-f223-40e9-a8d1-91bf05aa15aa/flexvol-driver/0.log
lrwxrwxrwx 1 root root  98 May 10 20:27 calico-node-w79vx_kube-system_install-cni-0535b9657989f59d04b40f0ddd8fa602819eb99bd30588044f053207c7cf5826.log -> /var/log/pods/kube-system_calico-node-w79vx_1c6abb6d-f223-40e9-a8d1-91bf05aa15aa/install-cni/0.log
lrwxrwxrwx 1 root root 136 May 22 11:54 kubernetes-dashboard-6b8bd587c8-5gxmx_kubernetes-dashboard_kubernetes-dashboard-38a140dd17fab3728993ba6d62dfec6f3f7d60c1c4e9bd5cf35a584473521a5e.log -> /var/log/pods/kubernetes-dashboard_kubernetes-dashboard-6b8bd587c8-5gxmx_b30f433b-22e5-4f25-abe3-54dda5d7e150/kubernetes-dashboard/5.log
lrwxrwxrwx 1 root root 136 May 22 11:43 kubernetes-dashboard-6b8bd587c8-5gxmx_kubernetes-dashboard_kubernetes-dashboard-d0e6d8dd5e05dcd9e89f57d0fbc50b751dbc3b51f58b429d1f9ac2d3542cb610.log -> /var/log/pods/kubernetes-dashboard_kubernetes-dashboard-6b8bd587c8-5gxmx_b30f433b-22e5-4f25-abe3-54dda5d7e150/kubernetes-dashboard/4.log
lrwxrwxrwx 1 root root 116 May 22 11:58 metrics-server-595f65d8d5-8tx99_kube-system_metrics-server-1ed8374b02b8d64fe16642e469444a3eb42806f692098717199cdc4f396507e0.log -> /var/log/pods/kube-system_metrics-server-595f65d8d5-8tx99_38fb7c96-3bb5-4dd7-b01b-89eb185b1543/metrics-server/25.log
lrwxrwxrwx 1 root root 116 May 22 18:21 metrics-server-595f65d8d5-8tx99_kube-system_metrics-server-ce5a280bb37fce451fa69e69b285666d926f2ae245b70854828917d6585ff147.log -> /var/log/pods/kube-system_metrics-server-595f65d8d5-8tx99_38fb7c96-3bb5-4dd7-b01b-89eb185b1543/metrics-server/26.log
lrwxrwxrwx 1 root root  97 May 11 16:40 ratel-78d677f865-sl6sf_kube-system_ratel-a9d1b84f5d90aba878263cdc50d31406d05f97477df4171e2631c689fdce8e32.log -> /var/log/pods/kube-system_ratel-78d677f865-sl6sf_35992bc6-ee05-48ac-bcd0-75ea9aa62bbc/ratel/0.log

你可能感兴趣的:(kubernetes,docker,javascript,js,log4j)