blob: 3bbc6715aa84126695c961d5c6c0c4e4ec058fdd [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:
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
59 volumes:
60 - name: localtime
61 hostPath:
62 path: /etc/localtime
Mandeep Khindad6ea9872017-06-24 11:49:37 -040063 restartPolicy: Always
Borislav Glozman5197e2e2017-07-24 10:45:28 +030064 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000065 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
kiranyafd583132017-11-22 12:34:34 +000066#{{ end }}