Member-only story
Kubernetes EFK Logging
Setting up EFK with some basic examples of usage.

Introduction
Here’s a basic example of installing and using unified logging on Kubernetes. I assume you now nothing about it for this tutorial. My personal preference is to use the EFK stack, which is Elastic Search for storage and indexing, Fluentd for aggregating logs for all of your containers, and Kibana to visualize and search through your logs.
What This Tutorial Covers
- Installing Elasic Search
- Installing Fluentd
- Installing Kibana
- Basic EFK Usage
What You Need For This Tutorial
A Kubernetes Cluster

Install EFK
Helm makes it very easy to install an EFK stack. Some people install these all at once, but I install them individually for more control over each part of the stack. We’ll be creating values.yml for each part of the stack
First create the following file for Elastic Search:
Now install Elastic Search with the following commands:
Now create the following file for Fluentd: