blob: 0ba4db50ce8da9b388e03254d51d25758bc772e6 [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 labels:
5 app: sdc-be
6 name: sdc-be
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00007 namespace: "{{ .Values.nsPrefix }}-sdc"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04008spec:
9 selector:
10 matchLabels:
11 app: sdc-be
12 template:
13 metadata:
14 labels:
15 app: sdc-be
16 name: sdc-be
17 annotations:
18 pod.beta.kubernetes.io/init-containers: '[
19 {
20 "args": [
21 "--container-name",
22 "sdc-es",
23 "--container-name",
24 "sdc-cs",
25 "--container-name",
26 "sdc-kb"
27 ],
28 "command": [
29 "/root/ready.py"
30 ],
31 "env": [
32 {
33 "name": "NAMESPACE",
34 "valueFrom": {
35 "fieldRef": {
36 "apiVersion": "v1",
37 "fieldPath": "metadata.namespace"
38 }
39 }
40 }
41 ],
kerenj80102842017-08-24 13:54:21 +000042 "image": "{{ .Values.image.readiness }}",
43 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040044 "name": "sdc-be-readiness"
45 },
46 {
47 "args": [
48 "--container-name",
49 "dmaap"
50 ],
51 "command": [
52 "/root/ready.py"
53 ],
54 "env": [
55 {
56 "name": "NAMESPACE",
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000057 "value": "{{ .Values.nsPrefix }}-message-router"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040058 }
59 ],
kerenj80102842017-08-24 13:54:21 +000060 "image": "{{ .Values.image.readiness }}",
61 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040062 "name": "sdc-dmaap-readiness"
63 }
64 ]'
65 spec:
66 containers:
67 - env:
68 - name: ENVNAME
69 value: AUTO
70 - name: HOST_IP
71 valueFrom:
72 fieldRef:
73 fieldPath: status.podIP
kerenj80102842017-08-24 13:54:21 +000074 image: {{ .Values.image.sdcBackend }}
75 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040076 name: sdc-be
77 volumeMounts:
78 - mountPath: /usr/share/elasticsearch/data/
79 name: sdc-sdc-es-es
80 - mountPath: /root/chef-solo/environments/
81 name: sdc-environments
Mandeep Khindad6ea9872017-06-24 11:49:37 -040082 - mountPath: /etc/localtime
83 name: sdc-localtime
yuryn8b3bc5a2017-09-13 19:21:03 +030084 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040085 - mountPath: /var/lib/jetty/logs
86 name: sdc-logs
yurynd0707be2017-09-27 14:54:18 +030087 - mountPath: /var/log/onap
88 name: sdc-logs-2
Mandeep Khinda11982f72017-10-13 17:54:20 +000089 - mountPath: /tmp/logback.xml
yurynd0707be2017-09-27 14:54:18 +030090 name: sdc-logback
Mandeep Khinda11982f72017-10-13 17:54:20 +000091 lifecycle:
92 postStart:
93 exec:
94 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 -040095 ports:
96 - containerPort: 8443
97 - containerPort: 8080
98 readinessProbe:
99 tcpSocket:
100 port: 8443
101 initialDelaySeconds: 5
102 periodSeconds: 10
yurynd0707be2017-09-27 14:54:18 +0300103 - image: {{ .Values.image.filebeat }}
104 imagePullPolicy: {{ .Values.pullPolicy }}
105 name: filebeat-onap
106 volumeMounts:
107 - mountPath: /usr/share/filebeat/filebeat.yml
108 name: filebeat-conf
109 - mountPath: /var/log/onap
110 name: sdc-logs-2
111 - mountPath: /usr/share/filebeat/data
112 name: sdc-data-filebeat
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400113 volumes:
yurynd0707be2017-09-27 14:54:18 +0300114 - name: filebeat-conf
115 hostPath:
116 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/logback/filebeat.yml
117 - name: sdc-logs-2
118 emptyDir: {}
119 - name: sdc-data-filebeat
120 emptyDir: {}
121 - name: sdc-logback
122 hostPath:
123 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/sdc/be/logback.xml
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400124 - name: sdc-sdc-es-es
125 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000126 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/sdc-es/ES
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400127 - name: sdc-environments
128 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000129 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400130 - name: sdc-localtime
131 hostPath:
132 path: /etc/localtime
133 - name: sdc-logs
134 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000135 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/logs
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300136 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000137 - name: "{{ .Values.nsPrefix }}-docker-registry-key"