blob: 41560525e1ab6118867f86f28cc8b24ec04168a6 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableSdcSdcBe }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 labels:
6 app: sdc-be
7 name: sdc-be
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00008 namespace: "{{ .Values.nsPrefix }}-sdc"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04009spec:
10 selector:
11 matchLabels:
12 app: sdc-be
13 template:
14 metadata:
15 labels:
16 app: sdc-be
17 name: sdc-be
Mandeep Khindad6ea9872017-06-24 11:49:37 -040018 spec:
vasundhra98960b62017-11-22 12:43:29 +000019 initContainers:
20 - command:
21 - /root/ready.py
22 args:
23 - --container-name
24 - sdc-es
25 - --container-name
26 - sdc-cs
27 - --container-name
28 - sdc-kb
29 env:
30 - name: NAMESPACE
31 valueFrom:
32 fieldRef:
33 apiVersion: v1
34 fieldPath: metadata.namespace
35 image: {{ .Values.image.readiness }}
36 imagePullPolicy: {{ .Values.pullPolicy }}
37 name: sdc-be-readiness
38 - command:
39 - /root/ready.py
40 args:
41 - --container-name
42 - dmaap
43 env:
44 - name: NAMESPACE
45 value: {{ .Values.nsPrefix }}-message-router
46 image: {{ .Values.image.readiness }}
47 imagePullPolicy: {{ .Values.pullPolicy }}
48 name: sdc-dmaap-readiness
Mandeep Khindad6ea9872017-06-24 11:49:37 -040049 containers:
50 - env:
51 - name: ENVNAME
52 value: AUTO
53 - name: HOST_IP
54 valueFrom:
55 fieldRef:
56 fieldPath: status.podIP
kerenj80102842017-08-24 13:54:21 +000057 image: {{ .Values.image.sdcBackend }}
58 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040059 name: sdc-be
60 volumeMounts:
61 - mountPath: /usr/share/elasticsearch/data/
62 name: sdc-sdc-es-es
63 - mountPath: /root/chef-solo/environments/
64 name: sdc-environments
Mandeep Khindad6ea9872017-06-24 11:49:37 -040065 - mountPath: /etc/localtime
66 name: sdc-localtime
yuryn8b3bc5a2017-09-13 19:21:03 +030067 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040068 - mountPath: /var/lib/jetty/logs
69 name: sdc-logs
yurynd0707be2017-09-27 14:54:18 +030070 - mountPath: /var/log/onap
71 name: sdc-logs-2
Mandeep Khinda11982f72017-10-13 17:54:20 +000072 - mountPath: /tmp/logback.xml
yurynd0707be2017-09-27 14:54:18 +030073 name: sdc-logback
Mandeep Khinda11982f72017-10-13 17:54:20 +000074 lifecycle:
75 postStart:
76 exec:
77 command: ["/bin/sh", "-c", "export LOG=wait_logback.log; touch $LOG; export SRC=/tmp/logback.xml; export DST=/var/lib/jetty/config/catalog-be/; while [ ! -e $DST ]; do echo 'Waiting for $DST...' >> $LOG; sleep 5; done; sleep 2; /bin/cp -f $SRC $DST; echo 'Done' >> $LOG"]
Mandeep Khindad6ea9872017-06-24 11:49:37 -040078 ports:
79 - containerPort: 8443
80 - containerPort: 8080
81 readinessProbe:
82 tcpSocket:
83 port: 8443
84 initialDelaySeconds: 5
85 periodSeconds: 10
yurynd0707be2017-09-27 14:54:18 +030086 - image: {{ .Values.image.filebeat }}
87 imagePullPolicy: {{ .Values.pullPolicy }}
88 name: filebeat-onap
89 volumeMounts:
90 - mountPath: /usr/share/filebeat/filebeat.yml
91 name: filebeat-conf
92 - mountPath: /var/log/onap
93 name: sdc-logs-2
94 - mountPath: /usr/share/filebeat/data
95 name: sdc-data-filebeat
Mandeep Khindad6ea9872017-06-24 11:49:37 -040096 volumes:
yurynd0707be2017-09-27 14:54:18 +030097 - name: filebeat-conf
98 hostPath:
99 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/logback/filebeat.yml
100 - name: sdc-logs-2
101 emptyDir: {}
102 - name: sdc-data-filebeat
103 emptyDir: {}
104 - name: sdc-logback
105 hostPath:
106 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/sdc/be/logback.xml
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400107 - name: sdc-sdc-es-es
108 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000109 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/sdc-es/ES
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400110 - name: sdc-environments
111 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000112 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400113 - name: sdc-localtime
114 hostPath:
115 path: /etc/localtime
116 - name: sdc-logs
117 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000118 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/logs
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300119 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000120 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
vasundhra98960b62017-11-22 12:43:29 +0000121#{{ end }}