GithubHelp home page GithubHelp logo

efk-stack's Introduction

efk-stack

Summary

This repository hosts examples and instruction on how to simply configure efk stack on local kubernetes cluster.


Warning

The installation and configuration manifests are for demo purposes and are not suited for production environments.


Overview

we will follow below steps for this demo :

  • Setup local kubernetes cluster using docker desktop and KIND

  • install elastic search using helm

  • Install and config fluentd.

  • setup kibara to visualize metrics

Setup Cluster

Please first clone the repository on your local machine and change directory to the root of the this git repository.

We will use KIND to create a control-plane node with two worker nodes.

# In case any clusters already exists from previous atempts. run below:
# kind delete cluster --name my-cluster

kind create cluster --name my-cluster --image kindest/node:v1.22.0 --config demo-cluster.yaml

Add helm repo

  1. Run the command to add helm repo:

    helm repo add stable https://charts.helm.sh/stable
  2. install elastic search:

     helm install elasticsearch stable/elasticsearch
    • verify installation and access to service
    kubectl port-forward svc/elasticsearch-client 9200
    http://localhost:9200/
    • verify elastic search indexes
    http://localhost:9200/_cat/indices?v
  3. install fluentd as daemonset:

    • first we will create nessary Cluster role,serviceaccount and rolebinding objects
     kubectl apply -f role_creation.yaml
    kubectl apply -f fluentd-daemonset-elasticsearch.yaml
  4. install kibana:

 helm install kibana stable/kibana -f kibana-values.yaml
  • verify installation and access to service

    kubectl port-forward svc/kibana 444:443
  1. Run Simple application to generate dummy logs
kubectl apply -f counter.yaml

efk-stack's People

Contributors

hamedfarv avatar

Stargazers

Mohammad Parvin avatar

Watchers

 avatar

Forkers

klapcsik

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.