blob: 5354dbac77eef13da9885116bddd12e897861f11 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableVidVidServer }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 labels:
6 app: vid-server
7 name: vid-server
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00008 namespace: "{{ .Values.nsPrefix }}-vid"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04009spec:
10 selector:
11 matchLabels:
12 app: vid-server
13 template:
14 metadata:
15 labels:
16 app: vid-server
17 name: vid-server
18 annotations:
19 pod.beta.kubernetes.io/init-containers: '[
20 {
21 "args": [
22 "--container-name",
23 "vid-mariadb"
24 ],
25 "command": [
26 "/root/ready.py"
27 ],
28 "env": [
29 {
30 "name": "NAMESPACE",
31 "valueFrom": {
32 "fieldRef": {
33 "apiVersion": "v1",
34 "fieldPath": "metadata.namespace"
35 }
36 }
37 }
38 ],
kerenjbf4b4a02017-08-23 07:39:14 +000039 "image": "{{ .Values.image.readiness }}",
40 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040041 "name": "vid-server-readiness"
42 }
43 ]'
44 spec:
45 containers:
46 - env:
47 - name: ASDC_CLIENT_REST_HOST
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000048 value: sdc-be.{{ .Values.nsPrefix }}-sdc
Mandeep Khindad6ea9872017-06-24 11:49:37 -040049 - name: ASDC_CLIENT_REST_AUTH
50 value: Basic dmlkOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=
51 - name: ASDC_CLIENT_REST_PORT
52 value: "8080"
53 - name: VID_AAI_HOST
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000054 value: aai-service.{{ .Values.nsPrefix }}-aai
Mandeep Khindad6ea9872017-06-24 11:49:37 -040055 - name: VID_AAI_PORT
56 value: "8443"
57 - name: VID_ECOMP_SHARED_CONTEXT_REST_URL
Rahul Sharma8a8ec822017-11-08 21:31:12 -050058 value: http://portalapps.{{ .Values.nsPrefix }}-portal:8989/ONAPPORTAL/context
Mandeep Khindad6ea9872017-06-24 11:49:37 -040059 - name: VID_MSO_SERVER_URL
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000060 value: http://mso.{{ .Values.nsPrefix }}-mso:8080
Mandeep Khindad6ea9872017-06-24 11:49:37 -040061 - name: VID_MSO_PASS
Alexis de Talhouƫtf456f462017-11-30 12:48:44 -050062 value: OBF:1ih71i271vny1yf41ymf1ylz1yf21vn41hzj1icz
Mandeep Khindad6ea9872017-06-24 11:49:37 -040063 - name: MSO_DME2_SERVER_URL
64 value: http://localhost:8081
65 - name: MSO_DME2_ENABLED
66 value: "false"
67 - name: VID_ECOMP_REDIRECT_URL
Rahul Sharma8a8ec822017-11-08 21:31:12 -050068 value: http://portalapps.{{ .Values.nsPrefix }}-portal:8989/ONAPPORTAL/login.htm
Mandeep Khindad6ea9872017-06-24 11:49:37 -040069 - name: VID_ECOMP_REST_URL
Rahul Sharma8a8ec822017-11-08 21:31:12 -050070 value: http://portalapps.{{ .Values.nsPrefix }}-portal:8989/ONAPPORTAL/auxapi
Mandeep Khindad6ea9872017-06-24 11:49:37 -040071 - name: VID_CONTACT_US_LINK
72 value: https://todo_contact_us_link.com
73 - name: VID_UEB_URL_LIST
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000074 value: dmaap.{{ .Values.nsPrefix }}-message-router
Mandeep Khindad6ea9872017-06-24 11:49:37 -040075 - name: VID_MYSQL_HOST
76 value: vid-mariadb
77 - name: VID_MYSQL_PORT
78 value: "3306"
79 - name: VID_MYSQL_DBNAME
Mandeep Khindaaa5ea3e2017-08-21 16:11:03 -040080 value: vid_openecomp_epsdk
Mandeep Khindad6ea9872017-06-24 11:49:37 -040081 - name: VID_MYSQL_USER
82 value: vidadmin
83 - name: VID_MYSQL_PASS
84 value: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
85 - name: VID_MYSQL_MAXCONNECTIONS
86 value: "5"
kerenjbf4b4a02017-08-23 07:39:14 +000087 image: {{ .Values.image.vid }}
88 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040089 name: vid-server
yurynd0707be2017-09-27 14:54:18 +030090 lifecycle:
91 postStart:
92 exec:
93 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 -040094 ports:
95 - containerPort: 8080
yuryn8b3bc5a2017-09-13 19:21:03 +030096 volumeMounts:
97 - mountPath: /etc/localtime
98 name: localtime
99 readOnly: true
yurynd0707be2017-09-27 14:54:18 +0300100 - mountPath: /var/log/onap
101 name: vid-logs
102 - mountPath: /tmp/logback.xml
103 name: vid-logback
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400104 readinessProbe:
105 tcpSocket:
106 port: 8080
107 initialDelaySeconds: 5
108 periodSeconds: 10
yurynd0707be2017-09-27 14:54:18 +0300109 - image: {{ .Values.image.filebeat }}
110 imagePullPolicy: {{ .Values.pullPolicy }}
111 name: filebeat-onap
112 volumeMounts:
113 - mountPath: /usr/share/filebeat/filebeat.yml
114 name: filebeat-conf
115 - mountPath: /var/log/onap
116 name: vid-logs
117 - mountPath: /usr/share/filebeat/data
118 name: vid-data-filebeat
yuryn8b3bc5a2017-09-13 19:21:03 +0300119 volumes:
120 - name: localtime
121 hostPath:
122 path: /etc/localtime
yurynd0707be2017-09-27 14:54:18 +0300123 - name: filebeat-conf
124 hostPath:
125 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/logback/filebeat.yml
126 - name: vid-logs
127 emptyDir: {}
128 - name: vid-data-filebeat
129 emptyDir: {}
130 - name: vid-logback
131 hostPath:
132 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/vid/logback.xml
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300133 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000134 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
Bharath Thiruveedula50c17b52017-12-11 23:43:32 +0530135#{{ end }}