blob: 0dc48393e4b73a38f7099663c2dbac77c9376967 [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: sdnc
5spec:
6 selector:
7 matchLabels:
8 app: sdnc
9 template:
10 metadata:
11 labels:
12 app: sdnc
13 name: sdnc
14 annotations:
15 pod.beta.kubernetes.io/init-containers: '[
16 {
17 "args": [
18 "--container-name",
19 "sdnc-db-container"
20 ],
21 "command": [
22 "/root/ready.py"
23 ],
24 "env": [
25 {
26 "name": "NAMESPACE",
27 "valueFrom": {
28 "fieldRef": {
29 "apiVersion": "v1",
30 "fieldPath": "metadata.namespace"
31 }
32 }
33 }
34 ],
35 "image": "oomk8s/readiness-check:1.0.0",
36 "imagePullPolicy": "Always",
37 "name": "sdnc-readiness"
38 }
39 ]'
40 spec:
41 containers:
42 - command:
43 - /opt/openecomp/sdnc/bin/startODL.sh
44 env:
45 - name: MYSQL_ROOT_PASSWORD
46 value: openECOMP1.0
47 - name: SDNC_CONFIG_DIR
48 value: /opt/openecomp/sdnc/data/properties
Munir Ahmade94258e2017-08-17 12:04:14 -040049 image: nexus3.onap.org:10001/openecomp/sdnc-image:1.0-STAGING-latest
Mandeep Khindad6ea9872017-06-24 11:49:37 -040050 name: sdnc-controller-container
51 volumeMounts:
52 - mountPath: /opt/openecomp/sdnc/data/properties
53 name: sdnc-conf
54 ports:
55 - containerPort: 8181
56 readinessProbe:
57 tcpSocket:
58 port: 8181
59 initialDelaySeconds: 5
60 periodSeconds: 10
61 volumes:
62 - name: sdnc-conf
63 hostPath:
Munir Ahmade94258e2017-08-17 12:04:14 -040064 path: /dockerdata-nfs/onapdemo/sdnc/conf
Borislav Glozman5197e2e2017-07-24 10:45:28 +030065 imagePullSecrets:
66 - name: onap-docker-registry-key