blob: cb296da49889b5a686451f03aba2c1bc8fb71c38 [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:
54 - mountPath: /opt/openecomp/sdnc/data/properties
55 name: sdnc-conf
56 ports:
57 - containerPort: 8181
58 readinessProbe:
59 tcpSocket:
60 port: 8181
61 initialDelaySeconds: 5
62 periodSeconds: 10
63 volumes:
64 - name: sdnc-conf
65 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000066 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf
Borislav Glozman5197e2e2017-07-24 10:45:28 +030067 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000068 - name: "{{ .Values.nsPrefix }}-docker-registry-key"