Skip to main content

Setup Elastic Search And Kibana Open Source

Intro

If you're enthusiastic about acquiring knowledge in Elasticsearch, the widely known open source search engine originating from the open source Lucene library, then the best way is to install it on your computer. The procedure is clearly indicated on the Elasticsearch website , but the official directions provide more information than a newbie needs.

Setup Elastic Search And Kibana Open Source

https://itnext.io/elasticsearch-kibana-on-k8s-w-rancher-desktop-rancher-cluster-manager-2-6-f155c86164c0

Add The Jetstack Helm Repository

helm repo add jetstack https://charts.jetstack.io

Update Your Local Helm Chart Repository Cache

helm repo update

Install The Cert-manager Helm chart -

https://cert-manager.io/docs/installation/helm/

helm install cert-manager jetstack/cert-manager --namespace cert-manager --create-namespace --set installCRDs=true --version v1.9.1 --wait

Deploy Rancher Cluster Manager via helm

RANCHER_SERVER_HOSTNAME="rancher.localhost"
helm repo add rancher-latest https://releases.rancher.com/server-charts/latest
helm repo update
kubectl create namespace cattle-system
helm install rancher rancher-latest/rancher --namespace cattle-system --set hostname=${RANCHER_SERVER_HOSTNAME} --set bootstrapPassword=admin --wait

Get Password

kubectl get secret --namespace cattle-system bootstrap-secret -o go-template='{{.data.bootstrapPassword|base64decode}}{{ "\n" }}'

Visit Racher Dashboard

https://rancher.localhost/

Add Elastic Repo

helm repo add elastic https://helm.elastic.co
docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2

Update the ports to open 9200 and 9300 and be sure to set the service type to Cluster IP Add the env var

discovery.type=single-node

Set Deployment For Kibana

docker.elastic.co/kibana/kibana-oss:7.10.2

Update the ports to open 5601 — set the service type to Cluster IP Set an env var for

ELASTICSEARCH_HOSTS=http://es:9200

Set Ingress

Namespace: es
Name: kibana.rancher.localhost
Rules.Request Host: kibana.rancher.localhost
Rules.Pods.Path: /
Rules.Pods.Target Service: kibana (select)
Rules.Pods.Port: 5601 (select)

Set Ingress For ES

es.rancher.localhost
Port 9200

Visit Kibana

http://kibana.rancher.localhost

Set Port-Forward At Rancher Desktop

Set according to ES and Kibana