blob: 8b4d0ebad6f80011a8180bb2c7783431eafac9fa [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: sdnc
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00005 namespace: "{{ .Values.nsPrefix }}-sdnc"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04006spec:
7 selector:
8 matchLabels:
9 app: sdnc
10 template:
11 metadata:
12 labels:
13 app: sdnc
14 name: sdnc
15 annotations:
16 pod.beta.kubernetes.io/init-containers: '[
17 {
18 "args": [
19 "--container-name",
20 "sdnc-db-container"
21 ],
22 "command": [
23 "/root/ready.py"
24 ],
25 "env": [
26 {
27 "name": "NAMESPACE",
28 "valueFrom": {
29 "fieldRef": {
30 "apiVersion": "v1",
31 "fieldPath": "metadata.namespace"
32 }
33 }
34 }
35 ],
kerenj9daad022017-08-23 13:35:43 +000036 "image": "{{ .Values.image.readiness }}",
37 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040038 "name": "sdnc-readiness"
39 }
40 ]'
41 spec:
42 containers:
43 - command:
44 - /opt/openecomp/sdnc/bin/startODL.sh
45 env:
46 - name: MYSQL_ROOT_PASSWORD
47 value: openECOMP1.0
48 - name: SDNC_CONFIG_DIR
49 value: /opt/openecomp/sdnc/data/properties
kerenj9daad022017-08-23 13:35:43 +000050 image: {{ .Values.image.sdnc }}
51 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040052 name: sdnc-controller-container
53 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030054 - mountPath: /etc/localtime
55 name: localtime
56 readOnly: true
Mandeep Khinda9f354812017-08-25 16:18:28 +000057 - mountPath: /opt/openecomp/sdnc/data/properties/aaiclient.properties
58 name: sdnc-aaiclient-properties
59 - mountPath: /opt/openecomp/sdnc/data/properties/admportal.json
yurynd0707be2017-09-27 14:54:18 +030060 name: sdnc-admportal-json
61 - mountPath: /var/log/onap
62 name: sdnc-logs
63 - mountPath: /opt/opendaylight/current/etc/org.ops4j.pax.logging.cfg
64 name: sdnc-log-config
Mandeep Khindad6ea9872017-06-24 11:49:37 -040065 ports:
66 - containerPort: 8181
67 readinessProbe:
68 tcpSocket:
69 port: 8181
70 initialDelaySeconds: 5
71 periodSeconds: 10
yurynd0707be2017-09-27 14:54:18 +030072 - image: {{ .Values.image.filebeat }}
73 imagePullPolicy: {{ .Values.pullPolicy }}
74 name: filebeat-onap
75 volumeMounts:
76 - mountPath: /usr/share/filebeat/filebeat.yml
77 name: filebeat-conf
78 - mountPath: /var/log/onap
79 name: sdnc-logs
80 - mountPath: /usr/share/filebeat/data
81 name: sdnc-data-filebeat
Mandeep Khindad6ea9872017-06-24 11:49:37 -040082 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030083 - name: localtime
84 hostPath:
85 path: /etc/localtime
yurynd0707be2017-09-27 14:54:18 +030086 - name: filebeat-conf
87 hostPath:
88 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/log4j/filebeat.yml
89 - name: sdnc-log-config
90 hostPath:
91 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/sdnc/org.ops4j.pax.logging.cfg
92 - name: sdnc-logs
93 emptyDir: {}
94 - name: sdnc-data-filebeat
95 emptyDir: {}
Mandeep Khinda9f354812017-08-25 16:18:28 +000096 - name: sdnc-aaiclient-properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -040097 hostPath:
Mandeep Khinda9f354812017-08-25 16:18:28 +000098 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf/aaiclient.properties
99 - name: sdnc-admportal-json
100 hostPath:
101 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf/admportal.json
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300102 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000103 - name: "{{ .Values.nsPrefix }}-docker-registry-key"