blob: f4947924ba8059a879cb7a1a575180af0249cbdf [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:
Mandeep Khinda9f354812017-08-25 16:18:28 +000054 - mountPath: /opt/openecomp/sdnc/data/properties/aaiclient.properties
55 name: sdnc-aaiclient-properties
56 - mountPath: /opt/openecomp/sdnc/data/properties/admportal.json
57 name: sdnc-admportal-json
Mandeep Khindad6ea9872017-06-24 11:49:37 -040058 ports:
59 - containerPort: 8181
60 readinessProbe:
61 tcpSocket:
62 port: 8181
63 initialDelaySeconds: 5
64 periodSeconds: 10
65 volumes:
Mandeep Khinda9f354812017-08-25 16:18:28 +000066 - name: sdnc-aaiclient-properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -040067 hostPath:
Mandeep Khinda9f354812017-08-25 16:18:28 +000068 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf/aaiclient.properties
69 - name: sdnc-admportal-json
70 hostPath:
71 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf/admportal.json
Borislav Glozman5197e2e2017-07-24 10:45:28 +030072 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000073 - name: "{{ .Values.nsPrefix }}-docker-registry-key"