blob: e48cbb4ac419f5ad08e167ee473f85077dc2a251 [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
18 annotations:
19 pod.beta.kubernetes.io/init-containers: '[
20 {
21 "args": [
22 "--container-name",
23 "elasticsearch"
24 ],
25 "command": [
26 "/root/ready.py"
27 ],
28 "env": [
29 {
30 "name": "NAMESPACE",
31 "valueFrom": {
32 "fieldRef": {
33 "apiVersion": "v1",
34 "fieldPath": "metadata.namespace"
35 }
36 }
37 }
38 ],
39 "image": "{{ .Values.image.readiness }}",
40 "imagePullPolicy": "{{ .Values.pullPolicy }}",
41 "name": "kibana-readiness"
42 }
43 ]'
44 spec:
45 containers:
46 - name: kibana
47 image: {{ .Values.image.kibana }}
48 ports:
49 - containerPort: 5601
50 name: http
51 protocol: TCP
52 readinessProbe:
53 tcpSocket:
54 port: 5601
55 volumeMounts:
56 - name: kibana-conf
57 mountPath: /usr/share/kibana/config/
58 volumes:
59 - name: kibana-conf
60 configMap:
61 name: kibana-configmap
62 items:
63 - key: kibana.yml
64 path: kibana.yml
65---
66apiVersion: v1
67kind: ConfigMap
68metadata:
69 name: kibana-configmap
70 namespace: {{ .Values.nsPrefix }}-log
71data:
Michael O'Brienc71456f2017-11-17 20:20:24 -050072{{ (.Files.Glob "resources/kibana/conf/kibana.yml").AsConfig | indent 2 }}
Kerenj353ce1d2017-11-12 11:08:28 +020073#{{ end }}