forked from carlosedp/kubernetes-elasticsearch-cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kibana-deployment.yaml
62 lines (61 loc) · 1.38 KB
/
kibana-deployment.yaml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: elk
---
apiVersion: v1
kind: ReplicationController
metadata:
name: kibana
labels:
component: elk
role: kibana
spec:
replicas: 1
selector:
component: elk
role: kibana
template:
metadata:
labels:
component: elk
role: kibana
spec:
serviceAccount: elk
containers:
- name: kibana
image: carlosedp/docker-kibana:6.5.4
env:
- name: KIBANA_ES_URL
value: "http://elasticsearch:9200"
- name: KUBERNETES_TRUST_CERT
value: "true"
- name: CLUSTER_NAME
value: myesdb
- name: SERVER_BASEPATH
value: kibana.internal.carlosedp.com
ports:
- containerPort: 5601
name: http
protocol: TCP
volumeMounts:
- name: config
mountPath: /opt/kibana/config
- name: logtrail-config
#mountPath: /usr/share/kibana/plugins/logtrail
mountPath: /opt/kibana/plugins/logtrail/logtrail.json
subPath: logtrail.json
volumes:
- name : config
configMap:
name: kibana-config
items:
- key: kibana.yml
path: kibana.yml
- name : logtrail-config
configMap:
name: kibana-config
items:
- key: logtrail.json
path: logtrail.json