blob: e0f8b298e9bf27734a01a85423d13ea9a82b91e2 [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:
8 selector:
9 matchLabels:
10 app: sdnc-dgbuilder
11 template:
12 metadata:
13 labels:
14 app: sdnc-dgbuilder
15 name: sdnc-dgbuilder
Mandeep Khindad6ea9872017-06-24 11:49:37 -040016 spec:
vasundhrad76102d2017-11-22 13:13:27 +000017 initContainers:
18 - command:
19 - /root/ready.py
20 args:
21 - --container-name
22 - sdnc-db-container
23 - --container-name
24 - sdnc-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: sdnc-dgbuilder-readiness
Mandeep Khindad6ea9872017-06-24 11:49:37 -040034 containers:
35 - command:
36 - /bin/bash
37 - -c
Mandeep Khindaedc59412017-10-05 12:18:14 +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
Mandeep Khindaedc59412017-10-05 12:18:14 +000043 value: /opt/onap/sdnc/data/properties
kerenj9daad022017-08-23 13:35:43 +000044 image: {{ .Values.image.dgbuilderSdnc }}
45 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040046 name: sdnc-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
Mandeep Khindad6ea9872017-06-24 11:49:37 -040058 restartPolicy: Always
yuryn8b3bc5a2017-09-13 19:21:03 +030059 volumes:
60 - name: localtime
61 hostPath:
62 path: /etc/localtime
Borislav Glozman5197e2e2017-07-24 10:45:28 +030063 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000064 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
vasundhrad76102d2017-11-22 13:13:27 +000065#{{ end }}