blob: c979845fe176ec7c64568a0875f6bbc174de0378 [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
Mandeep Khindad6ea9872017-06-24 11:49:37 -040018 spec:
vasundhraf2772b62017-11-22 13:23:04 +000019 initContainers:
20 - command:
21 - /root/ready.py
22 args:
23 - --container-name
24 - vid-mariadb
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: vid-server-readiness
Mandeep Khindad6ea9872017-06-24 11:49:37 -040034 containers:
35 - env:
36 - name: ASDC_CLIENT_REST_HOST
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000037 value: sdc-be.{{ .Values.nsPrefix }}-sdc
Mandeep Khindad6ea9872017-06-24 11:49:37 -040038 - name: ASDC_CLIENT_REST_AUTH
39 value: Basic dmlkOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=
40 - name: ASDC_CLIENT_REST_PORT
41 value: "8080"
42 - name: VID_AAI_HOST
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000043 value: aai-service.{{ .Values.nsPrefix }}-aai
Mandeep Khindad6ea9872017-06-24 11:49:37 -040044 - name: VID_AAI_PORT
45 value: "8443"
46 - name: VID_ECOMP_SHARED_CONTEXT_REST_URL
Rahul Sharma8a8ec822017-11-08 21:31:12 -050047 value: http://portalapps.{{ .Values.nsPrefix }}-portal:8989/ONAPPORTAL/context
Mandeep Khindad6ea9872017-06-24 11:49:37 -040048 - name: VID_MSO_SERVER_URL
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000049 value: http://mso.{{ .Values.nsPrefix }}-mso:8080
Mandeep Khindad6ea9872017-06-24 11:49:37 -040050 - name: VID_MSO_PASS
Alexis de Talhouƫtf456f462017-11-30 12:48:44 -050051 value: OBF:1ih71i271vny1yf41ymf1ylz1yf21vn41hzj1icz
Mandeep Khindad6ea9872017-06-24 11:49:37 -040052 - name: MSO_DME2_SERVER_URL
53 value: http://localhost:8081
54 - name: MSO_DME2_ENABLED
55 value: "false"
56 - name: VID_ECOMP_REDIRECT_URL
Rahul Sharma8a8ec822017-11-08 21:31:12 -050057 value: http://portalapps.{{ .Values.nsPrefix }}-portal:8989/ONAPPORTAL/login.htm
Mandeep Khindad6ea9872017-06-24 11:49:37 -040058 - name: VID_ECOMP_REST_URL
Rahul Sharma8a8ec822017-11-08 21:31:12 -050059 value: http://portalapps.{{ .Values.nsPrefix }}-portal:8989/ONAPPORTAL/auxapi
Mandeep Khindad6ea9872017-06-24 11:49:37 -040060 - name: VID_CONTACT_US_LINK
61 value: https://todo_contact_us_link.com
62 - name: VID_UEB_URL_LIST
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000063 value: dmaap.{{ .Values.nsPrefix }}-message-router
Mandeep Khindad6ea9872017-06-24 11:49:37 -040064 - name: VID_MYSQL_HOST
65 value: vid-mariadb
66 - name: VID_MYSQL_PORT
67 value: "3306"
68 - name: VID_MYSQL_DBNAME
Mandeep Khindaaa5ea3e2017-08-21 16:11:03 -040069 value: vid_openecomp_epsdk
Mandeep Khindad6ea9872017-06-24 11:49:37 -040070 - name: VID_MYSQL_USER
71 value: vidadmin
72 - name: VID_MYSQL_PASS
73 value: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
74 - name: VID_MYSQL_MAXCONNECTIONS
75 value: "5"
Pramod46bec902018-01-17 12:36:06 +000076 image: {{ .Values.image.vid }}
kerenjbf4b4a02017-08-23 07:39:14 +000077 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040078 name: vid-server
yurynd0707be2017-09-27 14:54:18 +030079 lifecycle:
80 postStart:
81 exec:
82 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 -040083 ports:
84 - containerPort: 8080
yuryn8b3bc5a2017-09-13 19:21:03 +030085 volumeMounts:
86 - mountPath: /etc/localtime
87 name: localtime
88 readOnly: true
yurynd0707be2017-09-27 14:54:18 +030089 - mountPath: /var/log/onap
90 name: vid-logs
91 - mountPath: /tmp/logback.xml
92 name: vid-logback
Pramod46bec902018-01-17 12:36:06 +000093 subPath: logback.xml
Mandeep Khindad6ea9872017-06-24 11:49:37 -040094 readinessProbe:
95 tcpSocket:
96 port: 8080
97 initialDelaySeconds: 5
98 periodSeconds: 10
yurynd0707be2017-09-27 14:54:18 +030099 - image: {{ .Values.image.filebeat }}
100 imagePullPolicy: {{ .Values.pullPolicy }}
101 name: filebeat-onap
102 volumeMounts:
103 - mountPath: /usr/share/filebeat/filebeat.yml
104 name: filebeat-conf
Pramod46bec902018-01-17 12:36:06 +0000105 subPath: filebeat.yml
yurynd0707be2017-09-27 14:54:18 +0300106 - mountPath: /var/log/onap
107 name: vid-logs
108 - mountPath: /usr/share/filebeat/data
109 name: vid-data-filebeat
yuryn8b3bc5a2017-09-13 19:21:03 +0300110 volumes:
111 - name: localtime
112 hostPath:
113 path: /etc/localtime
yurynd0707be2017-09-27 14:54:18 +0300114 - name: filebeat-conf
Pramod46bec902018-01-17 12:36:06 +0000115 configMap:
116 name: vid-filebeat-configmap
yurynd0707be2017-09-27 14:54:18 +0300117 - name: vid-logs
118 emptyDir: {}
119 - name: vid-data-filebeat
120 emptyDir: {}
121 - name: vid-logback
Pramod46bec902018-01-17 12:36:06 +0000122 configMap:
123 name: vid-log-configmap
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300124 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000125 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
Bharath Thiruveedula50c17b52017-12-11 23:43:32 +0530126#{{ end }}