blob: b9ec155c3f03d980a6dc4f59ba2cd7bc6ead3574 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableSdncSdncDgbuilder }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: sdnc-dgbuilder
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00006 namespace: "{{ .Values.nsPrefix }}-sdnc"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04007spec:
vaibhav_16decb23999a2018-02-14 09:00:07 +00008 replicas: {{ .Values.dgbuilderReplicas }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04009 selector:
10 matchLabels:
11 app: sdnc-dgbuilder
12 template:
13 metadata:
14 labels:
15 app: sdnc-dgbuilder
16 name: sdnc-dgbuilder
Mandeep Khindad6ea9872017-06-24 11:49:37 -040017 spec:
vasundhrad76102d2017-11-22 13:13:27 +000018 initContainers:
19 - command:
20 - /root/ready.py
21 args:
22 - --container-name
23 - sdnc-db-container
24 - --container-name
25 - sdnc-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: sdnc-dgbuilder-readiness
Mandeep Khindad6ea9872017-06-24 11:49:37 -040035 containers:
36 - command:
37 - /bin/bash
38 - -c
Mandeep Khindaedc59412017-10-05 12:18:14 +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
Mandeep Khindaedc59412017-10-05 12:18:14 +000044 value: /opt/onap/sdnc/data/properties
kerenj9daad022017-08-23 13:35:43 +000045 image: {{ .Values.image.dgbuilderSdnc }}
46 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040047 name: sdnc-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
Mandeep Khindad6ea9872017-06-24 11:49:37 -040059 restartPolicy: Always
yuryn8b3bc5a2017-09-13 19:21:03 +030060 volumes:
61 - name: localtime
62 hostPath:
63 path: /etc/localtime
Borislav Glozman5197e2e2017-07-24 10:45:28 +030064 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000065 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
vasundhrad76102d2017-11-22 13:13:27 +000066#{{ end }}