yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableLogLogstash }} |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | labels: |
| 6 | app: logstash |
| 7 | name: logstash |
| 8 | namespace: {{ .Values.nsPrefix }}-log |
| 9 | spec: |
| 10 | selector: |
| 11 | matchLabels: |
| 12 | app: logstash |
| 13 | template: |
| 14 | metadata: |
| 15 | labels: |
| 16 | app: logstash |
| 17 | name: logstash |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 18 | spec: |
kiranya | 7a31821 | 2017-11-22 13:40:04 +0000 | [diff] [blame] | 19 | 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: logstash-readiness |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 34 | containers: |
| 35 | - name: logstash |
| 36 | image: {{ .Values.image.logstash }} |
| 37 | ports: |
| 38 | - containerPort: 5044 |
| 39 | name: transport |
| 40 | protocol: TCP |
| 41 | readinessProbe: |
| 42 | tcpSocket: |
| 43 | port: 5044 |
| 44 | volumeMounts: |
| 45 | - mountPath: /usr/share/logstash/config/ |
| 46 | name: logstash-conf |
| 47 | - mountPath: /usr/share/logstash/pipeline/ |
| 48 | name: logstash-pipeline |
| 49 | volumes: |
| 50 | - name: logstash-conf |
| 51 | configMap: |
| 52 | name: logstash-configmap |
| 53 | items: |
| 54 | - key: logstash.yml |
| 55 | path: logstash.yml |
| 56 | - name: logstash-pipeline |
| 57 | configMap: |
| 58 | name: logstash-configmap |
| 59 | items: |
| 60 | - key: onap-pipeline.conf |
| 61 | path: onap-pipeline.conf |
| 62 | |
| 63 | --- |
| 64 | apiVersion: v1 |
| 65 | kind: ConfigMap |
| 66 | metadata: |
| 67 | name: logstash-configmap |
| 68 | namespace: {{ .Values.nsPrefix }}-log |
| 69 | data: |
| 70 | {{ (.Files.Glob "resources/logstash/conf/logstash.yml").AsConfig | indent 2 }} |
Michael O'Brien | c71456f | 2017-11-17 20:20:24 -0500 | [diff] [blame] | 71 | {{ (.Files.Glob "resources/logstash/pipeline/onap-pipeline.conf").AsConfig | indent 2 }} |
Kerenj | 353ce1d | 2017-11-12 11:08:28 +0200 | [diff] [blame] | 72 | #{{ end }} |