blob: b97b27a6e391362c69fbbf5738334e8ff91f3959 [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
51 value: 51515201a8d4c5c08d533db9bd1e1a9b
52 - 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"
kerenjbf4b4a02017-08-23 07:39:14 +000076 image: {{ .Values.image.vid }}
77 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
Mandeep Khindad6ea9872017-06-24 11:49:37 -040093 readinessProbe:
94 tcpSocket:
95 port: 8080
96 initialDelaySeconds: 5
97 periodSeconds: 10
yurynd0707be2017-09-27 14:54:18 +030098 - image: {{ .Values.image.filebeat }}
99 imagePullPolicy: {{ .Values.pullPolicy }}
100 name: filebeat-onap
101 volumeMounts:
102 - mountPath: /usr/share/filebeat/filebeat.yml
103 name: filebeat-conf
104 - mountPath: /var/log/onap
105 name: vid-logs
106 - mountPath: /usr/share/filebeat/data
107 name: vid-data-filebeat
yuryn8b3bc5a2017-09-13 19:21:03 +0300108 volumes:
109 - name: localtime
110 hostPath:
111 path: /etc/localtime
yurynd0707be2017-09-27 14:54:18 +0300112 - name: filebeat-conf
113 hostPath:
114 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/logback/filebeat.yml
115 - name: vid-logs
116 emptyDir: {}
117 - name: vid-data-filebeat
118 emptyDir: {}
119 - name: vid-logback
120 hostPath:
121 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/vid/logback.xml
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300122 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000123 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
vasundhraf2772b62017-11-22 13:23:04 +0000124#{{ end }}