Setup
A guide to setup elasticsearch on Kubernetes cluster using "Logging Operator".
Elasticsearch, Fluentd, and Kibana setup can be done by kubectl and helm. The API for information for elasticsearch is:-
Elasticsearch
Elasticsearch API information:-
---
apiVersion: logging.opstreelabs.in/v1alpha1
kind: ElasticsearchKubectl
For deployment using kubectl, we can use config/samples/elasticsearch.yaml file.
kubectl apply -f config/samples/elasticsearch-example.yamlElasticsearch configurated can be updated in the same file.
Helm
Helm can also be used to setup elasticsearch. Get into the directory helm-charts/logging-setup.
helm upgrade elastic-stack ./ -f values.yaml \
--set elasticsearch.enabled=true \
--set elasticsearch.master.enabled=true \
--set elasticsearch.master.replicas=3 \
--set elasticsearch.data.enabled=true \
--set elasticsearch.data.replicas=3 \
--set elasticsearch.client.enabled=true \
--set elasticsearch.client.replicas=1 \
--set elasticsearch.ingestion.enabled=true \
--set elasticsearch.ingestion.replicas=1 \
--namespace logging-operator --installValidate the elasticsearch cluster.

Fluentd
Fluentd API information:-
Kubectl
For deployment using kubectl, we can use config/samples/fluentd.yaml file.
Fluentd configurated can be updated in the same file.
Helm
Helm can also be used to setup fluentd. Get into the directory helm-charts/logging-setup.
Validate fluentd status

Kibana
Kibana API information:-
Kubectl
For deployment using kubectl, we can use config/samples/kibana.yaml file.
Kibana configuration can be updated in the same file.
Helm
Helm can also be used to setup kibana. Get into the directory helm-charts/logging-setup.

Last updated
Was this helpful?