Cerebro for ELK

Cerebro (Github Repo) is a Web UI to examine ELK cluster state as well as issuing REST API calls, similiar to Kibana but it is more straightforward through UIs.

Post related: Using Cerebro as Web UI to manage an ELK cluster

For example, I deploy one cerebro instance on dev cluster and port forward the cerebro service port to my bastion local:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: cerebro-deployment
labels:
app: cerebro
spec:
replicas: 1
selector:
matchLabels:
app: cerebro
template:
metadata:
labels:
app: cerebro
spec:
imagePullSecrets:
- name: <your image pull secret>
containers:
- name: cerebro
# update to available docker image address and tag
image: lmenezes/cerebro:0.9.4
ports:
- containerPort: 9000
args:
# set default elasticsearch cluster endpoint
- -Dhosts.0.host=http://xxxx:9200

Then executing port forward:

1
2
3
# cerebro-deployment-xxxx is the pod name
# 9123:9000: 9123 is local port, 9000 is pod port
kubectl port-forward cerebro-deployment-xxxx 9123:9000

Then accessing cerebro web UI from the browser by localhost:9123.

There are other forward formats, for example:

1
2
3
4
5
6
7
8
9
10
11
12
---
apiVersion: v1
kind: Service
metadata:
name: cerebro-service
spec:
selector:
app: cerebro
ports:
- protocol: TCP
port: 9000
targetPort: 9000
1
2
3
# 9123: local port
# 9000: svc port
kubectl port-forward service/cerebro-service 9123:9000
0%