Update annotations to spec for appc
[oom.git] / kubernetes / appc / templates / dgbuilder-deployment.yaml
1 #{{ if not .Values.disableAppcAppcDgbuilder }}
2 apiVersion: extensions/v1beta1
3 kind: Deployment
4 metadata:
5   name: appc-dgbuilder
6   namespace: "{{ .Values.nsPrefix }}-appc"
7 spec:
8   selector:
9     matchLabels:
10       app: appc-dgbuilder
11   template:
12     metadata:
13       labels:
14         app: appc-dgbuilder
15       name: appc-dgbuilder
16     spec:
17       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
34       containers:
35       - command:
36         - /bin/bash
37         - -c
38         - cd /opt/onap/sdnc/dgbuilder/ && ./start.sh sdnc1.0 && wait
39         env:
40         - name: MYSQL_ROOT_PASSWORD
41           value: openECOMP1.0
42         - name: SDNC_CONFIG_DIR
43           value: /opt/openecomp/sdnc/data/properties
44         - name: APPC_CONFIG_DIR
45           value: /opt/openecomp/appc/data/properties
46         image: {{ .Values.image.dgbuilderSdnc }}
47         imagePullPolicy: {{ .Values.pullPolicy }}
48         name: appc-dgbuilder-container
49         ports:
50         - containerPort: 3100
51         readinessProbe:
52           tcpSocket:
53             port: 3100
54           initialDelaySeconds: 5
55           periodSeconds: 10
56         volumeMounts:
57         - name: localtime
58           mountPath: /etc/localtime
59           readOnly: true
60       volumes:
61       - name: localtime
62         hostPath:
63           path: /etc/localtime
64       restartPolicy: Always
65       imagePullSecrets:
66       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
67 #{{ end }}