blob: f627a3c729805a9790ae29d281ef3e19ad02d695 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableLogKibana }}
Itay Hasside2da86d2017-08-24 12:54:42 +00002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 labels:
6 app: kibana
BorislavG8bfc6cf2018-02-27 15:04:26 +00007 name: log-kibana
8 namespace: {{ .Values.nsPrefix }}
Itay Hasside2da86d2017-08-24 12:54:42 +00009spec:
10 selector:
11 matchLabels:
12 app: kibana
13 template:
14 metadata:
15 labels:
16 app: kibana
BorislavG8bfc6cf2018-02-27 15:04:26 +000017 name: log-kibana
Itay Hasside2da86d2017-08-24 12:54:42 +000018 spec:
kiranya7a318212017-11-22 13:40:04 +000019 initContainers:
20 - command:
21 - /root/ready.py
22 args:
23 - --container-name
24 - elasticsearch
25 env:
26 - name: NAMESPACE
27 valueFrom:
28 fieldRef:
29 apiVersion: v1
30 fieldPath: metadata.namespace
31 image: {{ .Values.image.readiness }}
32 imagePullPolicy: {{ .Values.pullPolicy }}
33 name: kibana-readiness
Itay Hasside2da86d2017-08-24 12:54:42 +000034 containers:
35 - name: kibana
36 image: {{ .Values.image.kibana }}
37 ports:
38 - containerPort: 5601
39 name: http
40 protocol: TCP
41 readinessProbe:
42 tcpSocket:
43 port: 5601
44 volumeMounts:
45 - name: kibana-conf
46 mountPath: /usr/share/kibana/config/
47 volumes:
48 - name: kibana-conf
49 configMap:
BorislavG8bfc6cf2018-02-27 15:04:26 +000050 name: log-kibana-configmap
Itay Hasside2da86d2017-08-24 12:54:42 +000051 items:
52 - key: kibana.yml
53 path: kibana.yml
54---
55apiVersion: v1
56kind: ConfigMap
57metadata:
BorislavG8bfc6cf2018-02-27 15:04:26 +000058 name: log-kibana-configmap
59 namespace: {{ .Values.nsPrefix }}
Itay Hasside2da86d2017-08-24 12:54:42 +000060data:
BorislavG8bfc6cf2018-02-27 15:04:26 +000061{{ tpl (.Files.Glob "resources/kibana/conf/kibana.yml").AsConfig . | indent 2 }}
Kerenj353ce1d2017-11-12 11:08:28 +020062#{{ end }}