blob: 32ccdafc3bc940dd22b070eb1b13889d5ef63a07 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableAppcAppcDgbuilder }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: appc-dgbuilder
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00006 namespace: "{{ .Values.nsPrefix }}-appc"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04007spec:
8 selector:
9 matchLabels:
10 app: appc-dgbuilder
11 template:
12 metadata:
13 labels:
14 app: appc-dgbuilder
15 name: appc-dgbuilder
16 annotations:
17 pod.beta.kubernetes.io/init-containers: '[
18 {
19 "args": [
20 "--container-name",
21 "appc-db-container",
22 "--container-name",
23 "appc-controller-container"
24 ],
25 "command": [
26 "/root/ready.py"
27 ],
28 "env": [
29 {
30 "name": "NAMESPACE",
31 "valueFrom": {
32 "fieldRef": {
33 "apiVersion": "v1",
34 "fieldPath": "metadata.namespace"
35 }
36 }
37 }
38 ],
kerenj6ca15a72017-08-23 12:05:23 +000039 "image": "{{ .Values.image.readiness }}",
40 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040041 "name": "appc-dgbuilder-readiness"
42 }
43 ]'
44 spec:
45 containers:
46 - command:
47 - /bin/bash
48 - -c
Mandeep Khinda9743d842017-10-05 22:08:08 +000049 - cd /opt/onap/sdnc/dgbuilder/ && ./start.sh sdnc1.0 && wait
Mandeep Khindad6ea9872017-06-24 11:49:37 -040050 env:
51 - name: MYSQL_ROOT_PASSWORD
52 value: openECOMP1.0
53 - name: SDNC_CONFIG_DIR
Alexis de Talhouƫtf6b4f5f2017-11-28 10:50:57 -050054 value: /opt/onap/sdnc/data/properties
kerenj6ca15a72017-08-23 12:05:23 +000055 image: {{ .Values.image.dgbuilderSdnc }}
56 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040057 name: appc-dgbuilder-container
58 ports:
59 - containerPort: 3100
60 readinessProbe:
61 tcpSocket:
62 port: 3100
63 initialDelaySeconds: 5
64 periodSeconds: 10
yuryn8b3bc5a2017-09-13 19:21:03 +030065 volumeMounts:
66 - name: localtime
67 mountPath: /etc/localtime
68 readOnly: true
69 volumes:
70 - name: localtime
71 hostPath:
72 path: /etc/localtime
Mandeep Khindad6ea9872017-06-24 11:49:37 -040073 restartPolicy: Always
Borislav Glozman5197e2e2017-07-24 10:45:28 +030074 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000075 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
yurynfcef9942017-10-26 17:10:50 +030076#{{ end }}