Docker compose for fast build. docker-compose command required for this build.
$ ./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 ps
With this command, you can easily watch all containers created.
$ ./build.sh stop-d9
This command stop docker-compose file and remove containers
.
I used docker desktop kubernetes
For elastic search you have to increase memory, from configuration CPU: 6 Memory: 6GB is enough
$ ./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 inlogstash.yml
andkibana.yml
!!!
$ ./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 kubectl get all
With this command, you can easily watch all deployments, service, pods, persistent volume and claim.
$ ./build.sh stop-k8
This command stop all services
and deployments
created.
Cli | Version |
---|---|
docker | 20.10.5 |
docker desktop kubernetes | v1.19.7 |
mvn | 3.8.1 |