blob: a2bd4a1bbb074bf6077b11d15be1c25c1dd23336 [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: appc-dgbuilder
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00005 namespace: "{{ .Values.nsPrefix }}-appc"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04006spec:
7 selector:
8 matchLabels:
9 app: appc-dgbuilder
10 template:
11 metadata:
12 labels:
13 app: appc-dgbuilder
14 name: appc-dgbuilder
15 annotations:
16 pod.beta.kubernetes.io/init-containers: '[
17 {
18 "args": [
19 "--container-name",
20 "appc-db-container",
21 "--container-name",
22 "appc-controller-container"
23 ],
24 "command": [
25 "/root/ready.py"
26 ],
27 "env": [
28 {
29 "name": "NAMESPACE",
30 "valueFrom": {
31 "fieldRef": {
32 "apiVersion": "v1",
33 "fieldPath": "metadata.namespace"
34 }
35 }
36 }
37 ],
kerenj6ca15a72017-08-23 12:05:23 +000038 "image": "{{ .Values.image.readiness }}",
39 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040040 "name": "appc-dgbuilder-readiness"
41 }
42 ]'
43 spec:
44 containers:
45 - command:
46 - /bin/bash
47 - -c
Mandeep Khinda9743d842017-10-05 22:08:08 +000048 - cd /opt/onap/sdnc/dgbuilder/ && ./start.sh sdnc1.0 && wait
Mandeep Khindad6ea9872017-06-24 11:49:37 -040049 env:
50 - name: MYSQL_ROOT_PASSWORD
51 value: openECOMP1.0
52 - name: SDNC_CONFIG_DIR
53 value: /opt/openecomp/sdnc/data/properties
54 - name: APPC_CONFIG_DIR
55 value: /opt/openecomp/appc/data/properties
kerenj6ca15a72017-08-23 12:05:23 +000056 image: {{ .Values.image.dgbuilderSdnc }}
57 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040058 name: appc-dgbuilder-container
59 ports:
60 - containerPort: 3100
61 readinessProbe:
62 tcpSocket:
63 port: 3100
64 initialDelaySeconds: 5
65 periodSeconds: 10
yuryn8b3bc5a2017-09-13 19:21:03 +030066 volumeMounts:
67 - name: localtime
68 mountPath: /etc/localtime
69 readOnly: true
70 volumes:
71 - name: localtime
72 hostPath:
73 path: /etc/localtime
Mandeep Khindad6ea9872017-06-24 11:49:37 -040074 restartPolicy: Always
Borislav Glozman5197e2e2017-07-24 10:45:28 +030075 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000076 - name: "{{ .Values.nsPrefix }}-docker-registry-key"