基础参考文档
Kubernetes-基于EFK进行统一的日志管理
https://www.kubernetes.org.cn/4278.html

内部文档地址
http://s1.in.aiwaly.com/M00/PA/PA1021-fluentd/

部署yaml20200925部署完完成过

kubectl apply -f  http://s2.store12.com/s2/aw/tech/k8s/fluentd-elasticsearch/es-statefulset-20200927.yaml
kubectl apply -f  http://s2.store12.com/s2/aw/tech/k8s/fluentd-elasticsearch/es-service-20200927.yaml
kubectl apply -f  http://s2.store12.com/s2/aw/tech/k8s/fluentd-elasticsearch/fluentd-es-configmap-20200927.yaml
kubectl apply -f  http://s2.store12.com/s2/aw/tech/k8s/fluentd-elasticsearch/fluentd-es-ds-20200927.yaml
kubectl apply -f  http://s2.store12.com/s2/aw/tech/k8s/fluentd-elasticsearch/kibana-deployment-20200927.yaml
kubectl apply -f  http://s2.store12.com/s2/aw/tech/k8s/fluentd-elasticsearch/kibana-service-20200927.yaml

我们接下来就要对Node打label,这样就会拉起来了,中间注意间隔点时间。

[centos@master1 efk]$ kubectl label node minion8 beta.kubernetes.io/fluentd-ds-ready=true
[centos@master1 efk]$ kubectl label node minion21 beta.kubernetes.io/fluentd-ds-ready=true
[centos@master1 efk]$ kubectl label node minion9 beta.kubernetes.io/fluentd-ds-ready=true
[centos@master1 efk]$ kubectl label node minion16 beta.kubernetes.io/fluentd-ds-ready=true

再次检查节点被拉起的状态:

[centos@master1 efk]$ kubectl get pods -n kube-system -o wide | grep fluentd
fluentd-es-v2.0.4-75gdf                  1/1       Running   1          4d        10.244.27.245    minion8
fluentd-es-v2.0.4-kx5pz                  1/1       Running   0          2h        10.244.10.96  
文档更新时间: 2020-09-27 09:56   作者:月影鹏鹏