blob: 6e5c36c99308c0416635ba77030c2885cff1f1ec [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:
vaibhav_16decb7d08b22018-02-16 06:33:55 +000010 replicas: {{ .Values.kibanaReplicas }}
Itay Hasside2da86d2017-08-24 12:54:42 +000011 selector:
12 matchLabels:
13 app: kibana
14 template:
15 metadata:
16 labels:
17 app: kibana
BorislavG8bfc6cf2018-02-27 15:04:26 +000018 name: log-kibana
Itay Hasside2da86d2017-08-24 12:54:42 +000019 spec:
kiranya7a318212017-11-22 13:40:04 +000020 initContainers:
21 - command:
22 - /root/ready.py
23 args:
24 - --container-name
25 - elasticsearch
26 env:
27 - name: NAMESPACE
28 valueFrom:
29 fieldRef:
30 apiVersion: v1
31 fieldPath: metadata.namespace
32 image: {{ .Values.image.readiness }}
33 imagePullPolicy: {{ .Values.pullPolicy }}
34 name: kibana-readiness
Itay Hasside2da86d2017-08-24 12:54:42 +000035 containers:
36 - name: kibana
37 image: {{ .Values.image.kibana }}
38 ports:
39 - containerPort: 5601
40 name: http
41 protocol: TCP
42 readinessProbe:
43 tcpSocket:
44 port: 5601
45 volumeMounts:
46 - name: kibana-conf
47 mountPath: /usr/share/kibana/config/
48 volumes:
49 - name: kibana-conf
50 configMap:
BorislavG8bfc6cf2018-02-27 15:04:26 +000051 name: log-kibana-configmap
Itay Hasside2da86d2017-08-24 12:54:42 +000052 items:
53 - key: kibana.yml
54 path: kibana.yml
55---
56apiVersion: v1
57kind: ConfigMap
58metadata:
BorislavG8bfc6cf2018-02-27 15:04:26 +000059 name: log-kibana-configmap
60 namespace: {{ .Values.nsPrefix }}
Itay Hasside2da86d2017-08-24 12:54:42 +000061data:
BorislavG8bfc6cf2018-02-27 15:04:26 +000062{{ tpl (.Files.Glob "resources/kibana/conf/kibana.yml").AsConfig . | indent 2 }}
Kerenj353ce1d2017-11-12 11:08:28 +020063#{{ end }}