blob: 62f1d004d0bfd551c93ad7c644325fd510c0f6bd [file] [log] [blame]
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00001# Copyright © 2017 Amdocs, Bell Canada
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
yurynfcef9942017-10-26 17:10:50 +030015#{{ if not .Values.disableSdncSdncDgbuilder }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040016apiVersion: extensions/v1beta1
17kind: Deployment
18metadata:
19 name: sdnc-dgbuilder
BorislavG8bfc6cf2018-02-27 15:04:26 +000020 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040021spec:
vaibhav_16decb23999a2018-02-14 09:00:07 +000022 replicas: {{ .Values.dgbuilderReplicas }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040023 selector:
24 matchLabels:
25 app: sdnc-dgbuilder
26 template:
27 metadata:
28 labels:
29 app: sdnc-dgbuilder
30 name: sdnc-dgbuilder
Mandeep Khindad6ea9872017-06-24 11:49:37 -040031 spec:
vasundhrad76102d2017-11-22 13:13:27 +000032 initContainers:
33 - command:
34 - /root/ready.py
35 args:
36 - --container-name
37 - sdnc-db-container
38 - --container-name
39 - sdnc-controller-container
40 env:
41 - name: NAMESPACE
42 valueFrom:
43 fieldRef:
44 apiVersion: v1
45 fieldPath: metadata.namespace
46 image: {{ .Values.image.readiness }}
47 imagePullPolicy: {{ .Values.pullPolicy }}
48 name: sdnc-dgbuilder-readiness
Mandeep Khindad6ea9872017-06-24 11:49:37 -040049 containers:
50 - command:
51 - /bin/bash
52 - -c
Mandeep Khindaedc59412017-10-05 12:18:14 +000053 - cd /opt/onap/sdnc/dgbuilder/ && ./start.sh sdnc1.0 && wait
Mandeep Khindad6ea9872017-06-24 11:49:37 -040054 env:
55 - name: MYSQL_ROOT_PASSWORD
56 value: openECOMP1.0
57 - name: SDNC_CONFIG_DIR
Mandeep Khindaedc59412017-10-05 12:18:14 +000058 value: /opt/onap/sdnc/data/properties
kerenj9daad022017-08-23 13:35:43 +000059 image: {{ .Values.image.dgbuilderSdnc }}
60 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040061 name: sdnc-dgbuilder-container
62 ports:
63 - containerPort: 3100
64 readinessProbe:
65 tcpSocket:
66 port: 3100
67 initialDelaySeconds: 5
68 periodSeconds: 10
yuryn8b3bc5a2017-09-13 19:21:03 +030069 volumeMounts:
70 - name: localtime
71 mountPath: /etc/localtime
72 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040073 restartPolicy: Always
yuryn8b3bc5a2017-09-13 19:21:03 +030074 volumes:
75 - name: localtime
76 hostPath:
77 path: /etc/localtime
Borislav Glozman5197e2e2017-07-24 10:45:28 +030078 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000079 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
vasundhrad76102d2017-11-22 13:13:27 +000080#{{ end }}