blob: b60011a1b3f103617080d8344165733d00609a81 [file] [log] [blame]
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00001# Copyright © 2017 Amdocs, Bell Canada
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
yurynfcef9942017-10-26 17:10:50 +030015#{{ if not .Values.disableLogKibana }}
Itay Hasside2da86d2017-08-24 12:54:42 +000016apiVersion: extensions/v1beta1
17kind: Deployment
18metadata:
19 labels:
20 app: kibana
BorislavG8bfc6cf2018-02-27 15:04:26 +000021 name: log-kibana
22 namespace: {{ .Values.nsPrefix }}
Itay Hasside2da86d2017-08-24 12:54:42 +000023spec:
vaibhav_16decb7d08b22018-02-16 06:33:55 +000024 replicas: {{ .Values.kibanaReplicas }}
Itay Hasside2da86d2017-08-24 12:54:42 +000025 selector:
26 matchLabels:
27 app: kibana
28 template:
29 metadata:
30 labels:
31 app: kibana
BorislavG8bfc6cf2018-02-27 15:04:26 +000032 name: log-kibana
Itay Hasside2da86d2017-08-24 12:54:42 +000033 spec:
kiranya7a318212017-11-22 13:40:04 +000034 initContainers:
35 - command:
36 - /root/ready.py
37 args:
38 - --container-name
39 - elasticsearch
40 env:
41 - name: NAMESPACE
42 valueFrom:
43 fieldRef:
44 apiVersion: v1
45 fieldPath: metadata.namespace
46 image: {{ .Values.image.readiness }}
47 imagePullPolicy: {{ .Values.pullPolicy }}
48 name: kibana-readiness
Itay Hasside2da86d2017-08-24 12:54:42 +000049 containers:
50 - name: kibana
51 image: {{ .Values.image.kibana }}
52 ports:
53 - containerPort: 5601
54 name: http
55 protocol: TCP
56 readinessProbe:
57 tcpSocket:
58 port: 5601
59 volumeMounts:
60 - name: kibana-conf
61 mountPath: /usr/share/kibana/config/
62 volumes:
63 - name: kibana-conf
64 configMap:
BorislavG8bfc6cf2018-02-27 15:04:26 +000065 name: log-kibana-configmap
Itay Hasside2da86d2017-08-24 12:54:42 +000066 items:
67 - key: kibana.yml
68 path: kibana.yml
69---
70apiVersion: v1
71kind: ConfigMap
72metadata:
BorislavG8bfc6cf2018-02-27 15:04:26 +000073 name: log-kibana-configmap
74 namespace: {{ .Values.nsPrefix }}
Itay Hasside2da86d2017-08-24 12:54:42 +000075data:
BorislavG8bfc6cf2018-02-27 15:04:26 +000076{{ tpl (.Files.Glob "resources/kibana/conf/kibana.yml").AsConfig . | indent 2 }}
Kerenj353ce1d2017-11-12 11:08:28 +020077#{{ end }}