Skip to content

cbezmen/elk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microservice Logging Example

Docker

Description

Docker compose for fast build. docker-compose command required for this build.

Start Docker Compose

$ ./build.sh start-d9

This command start docker-compose.yaml file. This will run sample-app and elk projects.

You can check Kibana UI from http://localhost:5601/app/kibana

Watch Docker Containers

$ watch docker ps

With this command, you can easily watch all containers created.

Stop Docker Compose

$ ./build.sh stop-d9

This command stop docker-compose file and remove containers.

Kubernetes

Description

I used docker desktop kubernetes

For elastic search you have to increase memory, from configuration CPU: 6 Memory: 6GB is enough

Build Projects

$ ./build.sh build-k8

This command build and dockerized all projects under minikube environment.

Warning: There is no support for relative path in kubernetes. Please change �hostPath field in logstash.yml and kibana.yml !!!

Start Kubernetes

$ ./build.sh start-k8

This command run kubectl create -f . command under kubernetes folder. This will create services and deployments of sample-app and elk projects.

You can check Kibana UI from in http://localhost:5601/

Watch Kubernetes Environment

$ watch kubectl get all

With this command, you can easily watch all deployments, service, pods, persistent volume and claim.

Stop Kubernetes

$ ./build.sh stop-k8

This command stop all services and deployments created.

Knowledge & Requirements

Cli Versions

Cli Version
docker 20.10.5
docker desktop kubernetes v1.19.7
mvn 3.8.1

Deadline gif