Skip to content

fai555/istio-eck-fluent-bit

Repository files navigation

Note:

A lot of the configurations are taken from this repo and have been modified for Istio specific configuration. If you are not implementing ECK with Istio, then use the config files for the original repo.

K8S ECK Logging

This walk-through guides you to setup an in-cluster Elasticsearch and Kibana suite, with cluster-level logging data gathered by Fluent Bit. You may access and search logs from every pod in cluster, as long as the workload in pod writes log to stdout or stderr.

Prerequisites

  • GKE Cluster with Istio 1.5 Installed

Deployment Steps

Clone this repo to get necessary yaml files.

Elasticsearch and Kibana

Elastic Cloud on Kubernetes(ECK) is now generally available. ECK makes it easy to deploy Elasticsearch and Kibana on k8s with various topology.

  • Deploy ECK
kubectl apply -f https://download.elastic.co/downloads/eck/1.1.0/all-in-one.yaml
  • Create Namespace logging
kubectl create -f namespace.yaml
  • Deploy Elasticsearch and Kibana
kubectl create -f eck.yaml

Fluent Bit

FluentBit runs as DaemonSet on every node in cluster, gathering logs from every workload. FluentBit attach metadata like pod name and label to logs delivered to Elasticsearch.

Well-structured log(in JSON) can be searched/filtered by term in Elasticsearch.

kubectl create -f fluent-bit-service-account.yaml
kubectl create -f fluent-bit-role.yaml
kubectl create -f fluent-bit-role-binding.yaml
kubectl create -f fluent-bit-configmap.yaml
kubectl create -f fluent-bit-ds.yaml

And off you go.

Reference

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published