blob: 1c88fffea95d0bdbc0ccb420fbc06585a7cd5caf [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
Mandeep Khindad6ea9872017-06-24 11:49:37 -040016 spec:
vasundhrad76102d2017-11-22 13:13:27 +000017 initContainers:
18 - command:
19 - /root/ready.py
20 args:
21 - --container-name
22 - sdnc-db-container
23 env:
24 - name: NAMESPACE
25 valueFrom:
26 fieldRef:
27 apiVersion: v1
28 fieldPath: metadata.namespace
29 image: {{ .Values.image.readiness }}
30 imagePullPolicy: {{ .Values.pullPolicy }}
31 name: sdnc-readiness
Mandeep Khindad6ea9872017-06-24 11:49:37 -040032 containers:
33 - command:
Mandeep Khindaedc59412017-10-05 12:18:14 +000034 - /opt/onap/sdnc/bin/startODL.sh
Mandeep Khindad6ea9872017-06-24 11:49:37 -040035 env:
36 - name: MYSQL_ROOT_PASSWORD
37 value: openECOMP1.0
38 - name: SDNC_CONFIG_DIR
Mandeep Khindaedc59412017-10-05 12:18:14 +000039 value: /opt/onap/sdnc/data/properties
kerenj9daad022017-08-23 13:35:43 +000040 image: {{ .Values.image.sdnc }}
41 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040042 name: sdnc-controller-container
43 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030044 - mountPath: /etc/localtime
45 name: localtime
46 readOnly: true
Mandeep Khindaedc59412017-10-05 12:18:14 +000047 - mountPath: /opt/onap/sdnc/data/properties/aaiclient.properties
Mandeep Khinda9f354812017-08-25 16:18:28 +000048 name: sdnc-aaiclient-properties
Mandeep Khindaedc59412017-10-05 12:18:14 +000049 - mountPath: /opt/onap/sdnc/data/properties/admportal.json
yurynd0707be2017-09-27 14:54:18 +030050 name: sdnc-admportal-json
51 - mountPath: /var/log/onap
52 name: sdnc-logs
53 - mountPath: /opt/opendaylight/current/etc/org.ops4j.pax.logging.cfg
54 name: sdnc-log-config
Mandeep Khindad6ea9872017-06-24 11:49:37 -040055 ports:
56 - containerPort: 8181
Mandeep Khindaedc59412017-10-05 12:18:14 +000057 - containerPort: 8101
Mandeep Khindad6ea9872017-06-24 11:49:37 -040058 readinessProbe:
59 tcpSocket:
60 port: 8181
61 initialDelaySeconds: 5
62 periodSeconds: 10
yurynd0707be2017-09-27 14:54:18 +030063 - image: {{ .Values.image.filebeat }}
64 imagePullPolicy: {{ .Values.pullPolicy }}
65 name: filebeat-onap
66 volumeMounts:
67 - mountPath: /usr/share/filebeat/filebeat.yml
68 name: filebeat-conf
69 - mountPath: /var/log/onap
70 name: sdnc-logs
71 - mountPath: /usr/share/filebeat/data
72 name: sdnc-data-filebeat
Mandeep Khindad6ea9872017-06-24 11:49:37 -040073 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030074 - name: localtime
75 hostPath:
76 path: /etc/localtime
yurynd0707be2017-09-27 14:54:18 +030077 - name: filebeat-conf
78 hostPath:
79 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/log4j/filebeat.yml
80 - name: sdnc-log-config
81 hostPath:
82 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/sdnc/org.ops4j.pax.logging.cfg
83 - name: sdnc-logs
84 emptyDir: {}
85 - name: sdnc-data-filebeat
86 emptyDir: {}
Mandeep Khinda9f354812017-08-25 16:18:28 +000087 - name: sdnc-aaiclient-properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -040088 hostPath:
Mandeep Khinda9f354812017-08-25 16:18:28 +000089 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf/aaiclient.properties
90 - name: sdnc-admportal-json
91 hostPath:
92 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf/admportal.json
Borislav Glozman5197e2e2017-07-24 10:45:28 +030093 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000094 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
vasundhrad76102d2017-11-22 13:13:27 +000095#{{ end }}