blob: 95c282b60239955aff5775ca88df3ad9cdcc33c1 [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:
Mandeep Khindaedc59412017-10-05 12:18:14 +000044 - /opt/onap/sdnc/bin/startODL.sh
Mandeep Khindad6ea9872017-06-24 11:49:37 -040045 env:
46 - name: MYSQL_ROOT_PASSWORD
47 value: openECOMP1.0
48 - name: SDNC_CONFIG_DIR
Mandeep Khindaedc59412017-10-05 12:18:14 +000049 value: /opt/onap/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 Khindaedc59412017-10-05 12:18:14 +000057 - mountPath: /opt/onap/sdnc/data/properties/aaiclient.properties
Mandeep Khinda9f354812017-08-25 16:18:28 +000058 name: sdnc-aaiclient-properties
Mandeep Khindaedc59412017-10-05 12:18:14 +000059 - mountPath: /opt/onap/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
Mandeep Khindaedc59412017-10-05 12:18:14 +000067 - containerPort: 8101
Mandeep Khindad6ea9872017-06-24 11:49:37 -040068 readinessProbe:
69 tcpSocket:
70 port: 8181
71 initialDelaySeconds: 5
72 periodSeconds: 10
yurynd0707be2017-09-27 14:54:18 +030073 - image: {{ .Values.image.filebeat }}
74 imagePullPolicy: {{ .Values.pullPolicy }}
75 name: filebeat-onap
76 volumeMounts:
77 - mountPath: /usr/share/filebeat/filebeat.yml
78 name: filebeat-conf
79 - mountPath: /var/log/onap
80 name: sdnc-logs
81 - mountPath: /usr/share/filebeat/data
82 name: sdnc-data-filebeat
Mandeep Khindad6ea9872017-06-24 11:49:37 -040083 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030084 - name: localtime
85 hostPath:
86 path: /etc/localtime
yurynd0707be2017-09-27 14:54:18 +030087 - name: filebeat-conf
88 hostPath:
89 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/log4j/filebeat.yml
90 - name: sdnc-log-config
91 hostPath:
92 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/sdnc/org.ops4j.pax.logging.cfg
93 - name: sdnc-logs
94 emptyDir: {}
95 - name: sdnc-data-filebeat
96 emptyDir: {}
Mandeep Khinda9f354812017-08-25 16:18:28 +000097 - name: sdnc-aaiclient-properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -040098 hostPath:
Mandeep Khinda9f354812017-08-25 16:18:28 +000099 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf/aaiclient.properties
100 - name: sdnc-admportal-json
101 hostPath:
102 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf/admportal.json
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300103 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000104 - name: "{{ .Values.nsPrefix }}-docker-registry-key"