blob: 3b72071099fbe5246c1010d4ac6a8b6aa879455d [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
Pramodba635b32018-01-17 12:05:14 +000092 subPath: filebeat.yml
yurynd0707be2017-09-27 14:54:18 +030093 - mountPath: /var/log/onap
94 name: sdc-logs-2
95 - mountPath: /usr/share/filebeat/data
96 name: sdc-data-filebeat
Mandeep Khindad6ea9872017-06-24 11:49:37 -040097 volumes:
yurynd0707be2017-09-27 14:54:18 +030098 - name: filebeat-conf
Pramodba635b32018-01-17 12:05:14 +000099 configMap:
100 name: sdc-filebeat-configmap
yurynd0707be2017-09-27 14:54:18 +0300101 - name: sdc-logs-2
102 emptyDir: {}
103 - name: sdc-data-filebeat
104 emptyDir: {}
105 - name: sdc-logback
Pramodba635b32018-01-17 12:05:14 +0000106 configMap:
107 name : sdc-log-be-configmap
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400108 - name: sdc-sdc-es-es
109 hostPath:
kerenj390aec92018-02-25 13:57:36 +0000110 path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/sdc/sdc-es/ES
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400111 - name: sdc-environments
Pramodba635b32018-01-17 12:05:14 +0000112 configMap:
113 name: sdc-environments-configmap
114 defaultMode: 0755
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400115 - name: sdc-localtime
116 hostPath:
117 path: /etc/localtime
118 - name: sdc-logs
119 hostPath:
kerenj390aec92018-02-25 13:57:36 +0000120 path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/sdc/logs
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300121 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000122 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
vasundhra98960b62017-11-22 12:43:29 +0000123#{{ end }}