Skip to content

dunkelbunt1/EFK-minikube

Repository files navigation

EFK-minikube

Non production setup of the EFK stack on minikube

  1. Create the namespace
kubectl create -f kube-logging.yaml
  1. Create the elastic search service
kubectl create -f elasticsearch_svc.yaml
  1. Create the elastic search persistent volume
kubectl create -f elasticsearch-pv.yaml
  1. Create elastic search as a Stateful Set
kubectl create -f elasticsearch_statefulset.yaml
  1. Creating the Kibana Deployment and Service
kubectl create -f kibana.yaml
  1. Creating the Fluentd DaemonSet
kubectl create -f fluentd.yaml
  1. Accessing the UI

Oberserve the name of your Kibana pod:

kubectl get pods --namespace=kube-logging
NAME                      READY   STATUS    RESTARTS   AGE
es-cluster-0              1/1     Running   0          63m
es-cluster-1              1/1     Running   0          62m
es-cluster-2              1/1     Running   0          62m
fluentd-v6jgn             1/1     Running   0          23m
kibana-5749b5778b-vwn47   1/1     Running   0          51m

and configure port forwarding.

kubectl port-forward kibana-5749b5778b-vwn47  5601:5601 --namespace=kube-logging

visit the following web URL:

http://localhost:5601
  1. Testing the logging
kubectl create -f counter.yaml

Version:

kubectl version: 1.18.x, minikube version: v1.9.x

About

Non production setup of the EFK stack on minikube

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published