Kubernetes logging¶
https://kubernetes.io/docs/concepts/cluster-administration/logging/
EFK: elasticsearch, fluent-bit and kibana¶
Fluent-bit¶
Elasticsearch¶
- Official helm chart (stable/elasticsearch is deprecated).
Watch all cluster members come up.
Test cluster health using Helm test.
Kibana¶
- Official elastic chart - (stable/kibana is deprecated)
Fluentd¶
https://hub.helm.sh/charts/bitnami/fluentd
To verify that Fluentd has started, run:
kubectl get all -l "app.kubernetes.io/name=fluentd,app.kubernetes.io/instance=fluentd" --all-namespaces
Logs are captured on each node by the forwarder pods and then sent to the aggregator pods. By default, the aggregator pods send the logs to the standard output. You can see all the logs by running this command:
Loki¶
see ../../logging/loki.md