blob: fe9a198aef2118ef5582a7f0a1016661f82198eb [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
BorislavG8bfc6cf2018-02-27 15:04:26 +00006 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04007spec:
vaibhav_16deca6719fe2018-02-14 09:48:43 +00008 replicas: {{ .Values.dgbuilderReplicas }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04009 selector:
10 matchLabels:
11 app: appc-dgbuilder
12 template:
13 metadata:
14 labels:
15 app: appc-dgbuilder
16 name: appc-dgbuilder
Mandeep Khindad6ea9872017-06-24 11:49:37 -040017 spec:
kiranyafd583132017-11-22 12:34:34 +000018 initContainers:
19 - command:
20 - /root/ready.py
21 args:
22 - --container-name
23 - appc-db-container
24 - --container-name
25 - appc-controller-container
26 env:
27 - name: NAMESPACE
28 valueFrom:
29 fieldRef:
30 apiVersion: v1
31 fieldPath: metadata.namespace
32 image: {{ .Values.image.readiness }}
33 imagePullPolicy: {{ .Values.pullPolicy }}
34 name: appc-dgbuilder-readiness
Mandeep Khindad6ea9872017-06-24 11:49:37 -040035 containers:
36 - command:
37 - /bin/bash
38 - -c
Mandeep Khinda9743d842017-10-05 22:08:08 +000039 - cd /opt/onap/sdnc/dgbuilder/ && ./start.sh sdnc1.0 && wait
Mandeep Khindad6ea9872017-06-24 11:49:37 -040040 env:
41 - name: MYSQL_ROOT_PASSWORD
42 value: openECOMP1.0
43 - name: SDNC_CONFIG_DIR
Alexis de Talhouƫtf6b4f5f2017-11-28 10:50:57 -050044 value: /opt/onap/sdnc/data/properties
kerenj6ca15a72017-08-23 12:05:23 +000045 image: {{ .Values.image.dgbuilderSdnc }}
46 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040047 name: appc-dgbuilder-container
48 ports:
49 - containerPort: 3100
50 readinessProbe:
51 tcpSocket:
52 port: 3100
53 initialDelaySeconds: 5
54 periodSeconds: 10
yuryn8b3bc5a2017-09-13 19:21:03 +030055 volumeMounts:
56 - name: localtime
57 mountPath: /etc/localtime
58 readOnly: true
BorislavG8bfc6cf2018-02-27 15:04:26 +000059 - name: dgbuilder-conf
60 mountPath: /opt/onap/sdnc/dgbuilder/releases/sdnc1.0/conf/svclogic.properties
61 subPath: svclogic.properties
62 - name: dgbuilder-conf
63 mountPath: /opt/onap/sdnc/dgbuilder/svclogic/svclogic.properties
64 subPath: svclogic.properties
65 - name: dgbuilder-scripts
66 mountPath: /opt/onap/sdnc/dgbuilder/createReleaseDir.sh
67 subPath: createReleaseDir.sh
68 - name: dgbuilder-scripts
69 mountPath: /opt/onap/sdnc/dgbuilder/releases/sdnc1.0/customSettings.js
70 subPath: customSettings.js
yuryn8b3bc5a2017-09-13 19:21:03 +030071 volumes:
72 - name: localtime
73 hostPath:
74 path: /etc/localtime
BorislavG8bfc6cf2018-02-27 15:04:26 +000075 - name: dgbuilder-conf
76 configMap:
77 name: appc-dgbuilder-conf-configmap
78 - name: dgbuilder-scripts
79 configMap:
80 name: appc-dgbuilder-scripts-configmap
81 defaultMode: 0755
Mandeep Khindad6ea9872017-06-24 11:49:37 -040082 restartPolicy: Always
Borislav Glozman5197e2e2017-07-24 10:45:28 +030083 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000084 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
kiranyafd583132017-11-22 12:34:34 +000085#{{ end }}