blob: 1d3b945711a3640098e6657d4ae43399ee8b04aa [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableLogLogstash }}
Itay Hasside2da86d2017-08-24 12:54:42 +00002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 labels:
6 app: logstash
BorislavG8bfc6cf2018-02-27 15:04:26 +00007 name: log-logstash
8 namespace: {{ .Values.nsPrefix }}
Itay Hasside2da86d2017-08-24 12:54:42 +00009spec:
vaibhav_16decb7d08b22018-02-16 06:33:55 +000010 replicas: {{ .Values.logstashReplicas }}
Itay Hasside2da86d2017-08-24 12:54:42 +000011 selector:
12 matchLabels:
13 app: logstash
14 template:
15 metadata:
16 labels:
17 app: logstash
BorislavG8bfc6cf2018-02-27 15:04:26 +000018 name: log-logstash
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: logstash-readiness
Itay Hasside2da86d2017-08-24 12:54:42 +000035 containers:
36 - name: logstash
37 image: {{ .Values.image.logstash }}
38 ports:
mayankg2703229e5372018-01-29 09:33:56 +000039 - containerPort: 5044
Itay Hasside2da86d2017-08-24 12:54:42 +000040 name: transport
41 protocol: TCP
mayankg2703229e5372018-01-29 09:33:56 +000042 - containerPort: 9600
43 name: http
44 protocol: TCP
Itay Hasside2da86d2017-08-24 12:54:42 +000045 readinessProbe:
46 tcpSocket:
47 port: 5044
48 volumeMounts:
49 - mountPath: /usr/share/logstash/config/
50 name: logstash-conf
51 - mountPath: /usr/share/logstash/pipeline/
52 name: logstash-pipeline
53 volumes:
54 - name: logstash-conf
55 configMap:
BorislavG8bfc6cf2018-02-27 15:04:26 +000056 name: log-logstash-configmap
Itay Hasside2da86d2017-08-24 12:54:42 +000057 items:
58 - key: logstash.yml
59 path: logstash.yml
60 - name: logstash-pipeline
61 configMap:
BorislavG8bfc6cf2018-02-27 15:04:26 +000062 name: log-logstash-configmap
Itay Hasside2da86d2017-08-24 12:54:42 +000063 items:
64 - key: onap-pipeline.conf
65 path: onap-pipeline.conf
66
67---
68apiVersion: v1
69kind: ConfigMap
70metadata:
BorislavG8bfc6cf2018-02-27 15:04:26 +000071 name: log-logstash-configmap
72 namespace: {{ .Values.nsPrefix }}
Itay Hasside2da86d2017-08-24 12:54:42 +000073data:
BorislavG8bfc6cf2018-02-27 15:04:26 +000074{{ tpl (.Files.Glob "resources/logstash/conf/logstash.yml").AsConfig . | indent 2 }}
75{{ tpl (.Files.Glob "resources/logstash/pipeline/onap-pipeline.conf").AsConfig . | indent 2 }}
Kerenj353ce1d2017-11-12 11:08:28 +020076#{{ end }}