blob: a9a9c0e155cc24673167e7b9798c525f6eb25a12 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableSdncSdnc }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: sdnc
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00006 namespace: "{{ .Values.nsPrefix }}-sdnc"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04007spec:
8 selector:
9 matchLabels:
10 app: sdnc
11 template:
12 metadata:
13 labels:
14 app: sdnc
15 name: sdnc
16 annotations:
17 pod.beta.kubernetes.io/init-containers: '[
18 {
19 "args": [
20 "--container-name",
21 "sdnc-db-container"
22 ],
23 "command": [
24 "/root/ready.py"
25 ],
26 "env": [
27 {
28 "name": "NAMESPACE",
29 "valueFrom": {
30 "fieldRef": {
31 "apiVersion": "v1",
32 "fieldPath": "metadata.namespace"
33 }
34 }
35 }
36 ],
kerenj9daad022017-08-23 13:35:43 +000037 "image": "{{ .Values.image.readiness }}",
38 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040039 "name": "sdnc-readiness"
40 }
41 ]'
42 spec:
43 containers:
44 - command:
Mandeep Khindaedc59412017-10-05 12:18:14 +000045 - /opt/onap/sdnc/bin/startODL.sh
Mandeep Khindad6ea9872017-06-24 11:49:37 -040046 env:
47 - name: MYSQL_ROOT_PASSWORD
48 value: openECOMP1.0
49 - name: SDNC_CONFIG_DIR
Mandeep Khindaedc59412017-10-05 12:18:14 +000050 value: /opt/onap/sdnc/data/properties
kerenj9daad022017-08-23 13:35:43 +000051 image: {{ .Values.image.sdnc }}
52 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040053 name: sdnc-controller-container
54 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030055 - mountPath: /etc/localtime
56 name: localtime
57 readOnly: true
Mandeep Khindaedc59412017-10-05 12:18:14 +000058 - mountPath: /opt/onap/sdnc/data/properties/aaiclient.properties
Mandeep Khinda9f354812017-08-25 16:18:28 +000059 name: sdnc-aaiclient-properties
Mandeep Khindaedc59412017-10-05 12:18:14 +000060 - mountPath: /opt/onap/sdnc/data/properties/admportal.json
yurynd0707be2017-09-27 14:54:18 +030061 name: sdnc-admportal-json
62 - mountPath: /var/log/onap
63 name: sdnc-logs
64 - mountPath: /opt/opendaylight/current/etc/org.ops4j.pax.logging.cfg
65 name: sdnc-log-config
Mandeep Khindad6ea9872017-06-24 11:49:37 -040066 ports:
67 - containerPort: 8181
Mandeep Khindaedc59412017-10-05 12:18:14 +000068 - containerPort: 8101
Mandeep Khindad6ea9872017-06-24 11:49:37 -040069 readinessProbe:
70 tcpSocket:
71 port: 8181
72 initialDelaySeconds: 5
73 periodSeconds: 10
yurynd0707be2017-09-27 14:54:18 +030074 - image: {{ .Values.image.filebeat }}
75 imagePullPolicy: {{ .Values.pullPolicy }}
76 name: filebeat-onap
77 volumeMounts:
78 - mountPath: /usr/share/filebeat/filebeat.yml
79 name: filebeat-conf
80 - mountPath: /var/log/onap
81 name: sdnc-logs
82 - mountPath: /usr/share/filebeat/data
83 name: sdnc-data-filebeat
Mandeep Khindad6ea9872017-06-24 11:49:37 -040084 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030085 - name: localtime
86 hostPath:
87 path: /etc/localtime
yurynd0707be2017-09-27 14:54:18 +030088 - name: filebeat-conf
89 hostPath:
90 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/log4j/filebeat.yml
91 - name: sdnc-log-config
92 hostPath:
93 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/sdnc/org.ops4j.pax.logging.cfg
94 - name: sdnc-logs
95 emptyDir: {}
96 - name: sdnc-data-filebeat
97 emptyDir: {}
Mandeep Khinda9f354812017-08-25 16:18:28 +000098 - name: sdnc-aaiclient-properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -040099 hostPath:
Mandeep Khinda9f354812017-08-25 16:18:28 +0000100 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf/aaiclient.properties
101 - name: sdnc-admportal-json
102 hostPath:
103 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf/admportal.json
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300104 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000105 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
yurynfcef9942017-10-26 17:10:50 +0300106#{{ end }}