blob: 6fa8bcc0c328962bc376501ef1fa637640e68941 [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: appc-dgbuilder
5spec:
6 selector:
7 matchLabels:
8 app: appc-dgbuilder
9 template:
10 metadata:
11 labels:
12 app: appc-dgbuilder
13 name: appc-dgbuilder
14 annotations:
15 pod.beta.kubernetes.io/init-containers: '[
16 {
17 "args": [
18 "--container-name",
19 "appc-db-container",
20 "--container-name",
21 "appc-controller-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 ],
37 "image": "oomk8s/readiness-check:1.0.0",
38 "imagePullPolicy": "Always",
39 "name": "appc-dgbuilder-readiness"
40 }
41 ]'
42 spec:
43 containers:
44 - command:
45 - /bin/bash
46 - -c
47 - cd /opt/openecomp/sdnc/dgbuilder/ && ./start sdnc1.0 && wait
48 env:
49 - name: MYSQL_ROOT_PASSWORD
50 value: openECOMP1.0
51 - name: SDNC_CONFIG_DIR
52 value: /opt/openecomp/sdnc/data/properties
53 - name: APPC_CONFIG_DIR
54 value: /opt/openecomp/appc/data/properties
Munir Ahmad0b133292017-08-15 15:36:46 -040055 image: nexus3.onap.org:10001/openecomp/dgbuilder-sdnc-image:1.1-STAGING-latest
Mandeep Khindad6ea9872017-06-24 11:49:37 -040056 name: appc-dgbuilder-container
57 ports:
58 - containerPort: 3100
59 readinessProbe:
60 tcpSocket:
61 port: 3100
62 initialDelaySeconds: 5
63 periodSeconds: 10
64 restartPolicy: Always
Borislav Glozman5197e2e2017-07-24 10:45:28 +030065 imagePullSecrets:
66 - name: onap-docker-registry-key