blob: 7903fb02b139abc6c8eac042f8cac348c0a23429 [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.disableVidVidServer }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040016apiVersion: extensions/v1beta1
17kind: Deployment
18metadata:
19 labels:
20 app: vid-server
21 name: vid-server
BorislavG8bfc6cf2018-02-27 15:04:26 +000022 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040023spec:
vaibhav_16dec49302052018-02-15 10:00:06 +000024 replicas: {{ .Values.vidServerReplicas }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040025 selector:
26 matchLabels:
27 app: vid-server
28 template:
29 metadata:
30 labels:
31 app: vid-server
32 name: vid-server
Mandeep Khindad6ea9872017-06-24 11:49:37 -040033 spec:
vasundhraf2772b62017-11-22 13:23:04 +000034 initContainers:
35 - command:
36 - /root/ready.py
37 args:
38 - --container-name
39 - vid-mariadb
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: vid-server-readiness
Mandeep Khindad6ea9872017-06-24 11:49:37 -040049 containers:
50 - env:
51 - name: ASDC_CLIENT_REST_HOST
BorislavG8bfc6cf2018-02-27 15:04:26 +000052 value: sdc-be.{{ .Values.nsPrefix }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040053 - name: ASDC_CLIENT_REST_AUTH
54 value: Basic dmlkOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=
55 - name: ASDC_CLIENT_REST_PORT
56 value: "8080"
57 - name: VID_AAI_HOST
BorislavG8bfc6cf2018-02-27 15:04:26 +000058 value: aai-service.{{ .Values.nsPrefix }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040059 - name: VID_AAI_PORT
60 value: "8443"
61 - name: VID_ECOMP_SHARED_CONTEXT_REST_URL
BorislavG8bfc6cf2018-02-27 15:04:26 +000062 value: http://portalapps.{{ .Values.nsPrefix }}:8989/ONAPPORTAL/context
Mandeep Khindad6ea9872017-06-24 11:49:37 -040063 - name: VID_MSO_SERVER_URL
BorislavG8bfc6cf2018-02-27 15:04:26 +000064 value: http://mso.{{ .Values.nsPrefix }}:8080
Mandeep Khindad6ea9872017-06-24 11:49:37 -040065 - name: VID_MSO_PASS
Alexis de Talhouëtf456f462017-11-30 12:48:44 -050066 value: OBF:1ih71i271vny1yf41ymf1ylz1yf21vn41hzj1icz
Mandeep Khindad6ea9872017-06-24 11:49:37 -040067 - name: MSO_DME2_SERVER_URL
68 value: http://localhost:8081
69 - name: MSO_DME2_ENABLED
70 value: "false"
71 - name: VID_ECOMP_REDIRECT_URL
BorislavG8bfc6cf2018-02-27 15:04:26 +000072 value: http://portalapps.{{ .Values.nsPrefix }}:8989/ONAPPORTAL/login.htm
Mandeep Khindad6ea9872017-06-24 11:49:37 -040073 - name: VID_ECOMP_REST_URL
BorislavG8bfc6cf2018-02-27 15:04:26 +000074 value: http://portalapps.{{ .Values.nsPrefix }}:8989/ONAPPORTAL/auxapi
Mandeep Khindad6ea9872017-06-24 11:49:37 -040075 - name: VID_CONTACT_US_LINK
76 value: https://todo_contact_us_link.com
77 - name: VID_UEB_URL_LIST
BorislavG8bfc6cf2018-02-27 15:04:26 +000078 value: dmaap.{{ .Values.nsPrefix }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040079 - name: VID_MYSQL_HOST
80 value: vid-mariadb
81 - name: VID_MYSQL_PORT
82 value: "3306"
83 - name: VID_MYSQL_DBNAME
Mandeep Khindaaa5ea3e2017-08-21 16:11:03 -040084 value: vid_openecomp_epsdk
Mandeep Khindad6ea9872017-06-24 11:49:37 -040085 - name: VID_MYSQL_USER
86 value: vidadmin
87 - name: VID_MYSQL_PASS
88 value: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
89 - name: VID_MYSQL_MAXCONNECTIONS
90 value: "5"
Pramod46bec902018-01-17 12:36:06 +000091 image: {{ .Values.image.vid }}
kerenjbf4b4a02017-08-23 07:39:14 +000092 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040093 name: vid-server
yurynd0707be2017-09-27 14:54:18 +030094 lifecycle:
95 postStart:
96 exec:
97 command: ["/bin/sh", "-c", "export LOG=wait_logback.log; touch $LOG; export SRC=/tmp/logback.xml; export DST=/usr/local/tomcat/webapps/vid/WEB-INF/classes/; while [ ! -e $DST ]; do echo 'Waiting for $DST...' >> $LOG; sleep 5; done; sleep 2; /bin/cp -f $SRC $DST; echo 'Done' >> $LOG"]
Mandeep Khindad6ea9872017-06-24 11:49:37 -040098 ports:
99 - containerPort: 8080
yuryn8b3bc5a2017-09-13 19:21:03 +0300100 volumeMounts:
101 - mountPath: /etc/localtime
102 name: localtime
103 readOnly: true
yurynd0707be2017-09-27 14:54:18 +0300104 - mountPath: /var/log/onap
105 name: vid-logs
106 - mountPath: /tmp/logback.xml
107 name: vid-logback
Pramod46bec902018-01-17 12:36:06 +0000108 subPath: logback.xml
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400109 readinessProbe:
110 tcpSocket:
111 port: 8080
112 initialDelaySeconds: 5
113 periodSeconds: 10
yurynd0707be2017-09-27 14:54:18 +0300114 - image: {{ .Values.image.filebeat }}
115 imagePullPolicy: {{ .Values.pullPolicy }}
116 name: filebeat-onap
117 volumeMounts:
118 - mountPath: /usr/share/filebeat/filebeat.yml
119 name: filebeat-conf
Pramod46bec902018-01-17 12:36:06 +0000120 subPath: filebeat.yml
yurynd0707be2017-09-27 14:54:18 +0300121 - mountPath: /var/log/onap
122 name: vid-logs
123 - mountPath: /usr/share/filebeat/data
124 name: vid-data-filebeat
yuryn8b3bc5a2017-09-13 19:21:03 +0300125 volumes:
126 - name: localtime
127 hostPath:
128 path: /etc/localtime
yurynd0707be2017-09-27 14:54:18 +0300129 - name: filebeat-conf
Pramod46bec902018-01-17 12:36:06 +0000130 configMap:
131 name: vid-filebeat-configmap
yurynd0707be2017-09-27 14:54:18 +0300132 - name: vid-logs
133 emptyDir: {}
134 - name: vid-data-filebeat
135 emptyDir: {}
136 - name: vid-logback
Pramod46bec902018-01-17 12:36:06 +0000137 configMap:
138 name: vid-log-configmap
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300139 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000140 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
Bharath Thiruveedula50c17b52017-12-11 23:43:32 +0530141#{{ end }}