blob: 2de825e516b3b2bad994692ef6670f9674e2a5f6 [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
7 name: kibana
8 namespace: {{ .Values.nsPrefix }}-log
9spec:
10 selector:
11 matchLabels:
12 app: kibana
13 template:
14 metadata:
15 labels:
16 app: kibana
17 name: 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:
50 name: kibana-configmap
51 items:
52 - key: kibana.yml
53 path: kibana.yml
54---
55apiVersion: v1
56kind: ConfigMap
57metadata:
58 name: kibana-configmap
59 namespace: {{ .Values.nsPrefix }}-log
60data:
Michael O'Brienc71456f2017-11-17 20:20:24 -050061{{ (.Files.Glob "resources/kibana/conf/kibana.yml").AsConfig | indent 2 }}
Kerenj353ce1d2017-11-12 11:08:28 +020062#{{ end }}