Skip to content

Easily bootstrap Kubernetes with Elasticsearch, Kibana and Beats for development

License

Notifications You must be signed in to change notification settings

xiaoyuaiheshui/beats-k8s-dev

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

beats-k8s-dev

Easily bootstrap Kubernetes with Elasticsearch, Kibana and Beats for development. This set of script and manifests will deploy a local Kubernetes cluster using Minikube, then deploy Elasticsearch, Kibana and Beats on it, with the proper configurations to make them work together.

Requirements

In order to run this script you will need to make sure VirtualBox is installed. Running the script will launch a new VirtualBox machine, using 8GB of RAM.

Start

Clone this repo and run the beats-kube-up.sh script:

$ ./beats-kube-up.sh

Once done, services will start their deploy, you can check the status with the kubectl command:

$ ./bin/kubectl get po

In progress

  • Allow to set Elastic stack version in the script
  • Add Auditbeat
  • Add Packetbeat

GCP

These manifests can also be run on GCP. It requires your user to be admin. For this run:

kubectl create clusterrolebinding cluster-admin-binding --clusterrole=cluster-admin --user=your@mail.co

To forward a specific port (for example Kibana) to your host run the following commands:

kubectl get pod
kubectl port-forward kibana-85bcc47749-stsc4 5601:5601

Replace kibana-85bcc47749-stsc4 with the pod name you see in the get pod result.

About

Easily bootstrap Kubernetes with Elasticsearch, Kibana and Beats for development

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%