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.
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.
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
- Allow to set Elastic stack version in the script
- Add Auditbeat
- Add Packetbeat
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.