blob: ed69c05f38cbb83b661e398f70233b6d73fc1f07 [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
Mandeep Khindad6ea9872017-06-24 11:49:37 -040016 spec:
kiranyafd583132017-11-22 12:34:34 +000017 initContainers:
18 - command:
19 - /root/ready.py
20 args:
21 - --container-name
22 - appc-db-container
23 - --container-name
24 - appc-controller-container
25 env:
26 - name: NAMESPACE
27 valueFrom:
28 fieldRef:
29 apiVersion: v1
30 fieldPath: metadata.namespace
31 image: {{ .Values.image.readiness }}
32 imagePullPolicy: {{ .Values.pullPolicy }}
33 name: appc-dgbuilder-readiness
Mandeep Khindad6ea9872017-06-24 11:49:37 -040034 containers:
35 - command:
36 - /bin/bash
37 - -c
Mandeep Khinda9743d842017-10-05 22:08:08 +000038 - cd /opt/onap/sdnc/dgbuilder/ && ./start.sh sdnc1.0 && wait
Mandeep Khindad6ea9872017-06-24 11:49:37 -040039 env:
40 - name: MYSQL_ROOT_PASSWORD
41 value: openECOMP1.0
42 - name: SDNC_CONFIG_DIR
Alexis de Talhouƫtf6b4f5f2017-11-28 10:50:57 -050043 value: /opt/onap/sdnc/data/properties
kerenj6ca15a72017-08-23 12:05:23 +000044 image: {{ .Values.image.dgbuilderSdnc }}
45 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040046 name: appc-dgbuilder-container
47 ports:
48 - containerPort: 3100
49 readinessProbe:
50 tcpSocket:
51 port: 3100
52 initialDelaySeconds: 5
53 periodSeconds: 10
yuryn8b3bc5a2017-09-13 19:21:03 +030054 volumeMounts:
55 - name: localtime
56 mountPath: /etc/localtime
57 readOnly: true
58 volumes:
59 - name: localtime
60 hostPath:
61 path: /etc/localtime
Mandeep Khindad6ea9872017-06-24 11:49:37 -040062 restartPolicy: Always
Borislav Glozman5197e2e2017-07-24 10:45:28 +030063 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000064 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
kiranyafd583132017-11-22 12:34:34 +000065#{{ end }}