Logging Operator
Search…
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:-
1
---
2
apiVersion: logging.opstreelabs.in/v1alpha1
3
kind: Elasticsearch
Copied!

Kubectl

For deployment using kubectl, we can use config/samples/elasticsearch.yaml file.
1
kubectl apply -f config/samples/elasticsearch-example.yaml
Copied!
Elasticsearch 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.
1
helm upgrade elastic-stack ./ -f values.yaml \
2
--set elasticsearch.enabled=true \
3
--set elasticsearch.master.enabled=true \
4
--set elasticsearch.master.replicas=3 \
5
--set elasticsearch.data.enabled=true \
6
--set elasticsearch.data.replicas=3 \
7
--set elasticsearch.client.enabled=true \
8
--set elasticsearch.client.replicas=1 \
9
--set elasticsearch.ingestion.enabled=true \
10
--set elasticsearch.ingestion.replicas=1 \
11
--namespace logging-operator --install
Copied!
Validate the elasticsearch cluster.

Fluentd

Fluentd API information:-
1
---
2
apiVersion: logging.opstreelabs.in/v1alpha1
3
kind: Fluentd
Copied!

Kubectl

For deployment using kubectl, we can use config/samples/fluentd.yaml file.
1
kubectl apply -f config/samples/fluentd-example.yaml
Copied!
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.
1
helm upgrade fluentd-stack ./ \
2
-f values.yaml --set fluentd.enabled=true \
3
--namesapce logging-operator --install
Copied!
Validate fluentd status

Kibana

Kibana API information:-
1
---
2
apiVersion: logging.opstreelabs.in/v1alpha1
3
kind: Kibana
Copied!

Kubectl

For deployment using kubectl, we can use config/samples/kibana.yaml file.
1
kubectl apply -f config/samples/kibana-example.yaml
Copied!
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.
1
helm upgrade kibana-stack ./ \
2
-f values.yaml --set kibana.enabled=true \
3
--namespace logging-operator --install
Copied!
Last modified 1yr ago