blob: ff341335a3e2e6e4fe60c557d8d4f47aa1c1916b [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 labels:
5 app: vid-server
6 name: vid-server
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00007 namespace: "{{ .Values.nsPrefix }}-vid"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04008spec:
9 selector:
10 matchLabels:
11 app: vid-server
12 template:
13 metadata:
14 labels:
15 app: vid-server
16 name: vid-server
17 annotations:
18 pod.beta.kubernetes.io/init-containers: '[
19 {
20 "args": [
21 "--container-name",
22 "vid-mariadb"
23 ],
24 "command": [
25 "/root/ready.py"
26 ],
27 "env": [
28 {
29 "name": "NAMESPACE",
30 "valueFrom": {
31 "fieldRef": {
32 "apiVersion": "v1",
33 "fieldPath": "metadata.namespace"
34 }
35 }
36 }
37 ],
kerenjbf4b4a02017-08-23 07:39:14 +000038 "image": "{{ .Values.image.readiness }}",
39 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040040 "name": "vid-server-readiness"
41 }
42 ]'
43 spec:
44 containers:
45 - env:
46 - name: ASDC_CLIENT_REST_HOST
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000047 value: sdc-be.{{ .Values.nsPrefix }}-sdc
Mandeep Khindad6ea9872017-06-24 11:49:37 -040048 - name: ASDC_CLIENT_REST_AUTH
49 value: Basic dmlkOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=
50 - name: ASDC_CLIENT_REST_PORT
51 value: "8080"
52 - name: VID_AAI_HOST
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000053 value: aai-service.{{ .Values.nsPrefix }}-aai
Mandeep Khindad6ea9872017-06-24 11:49:37 -040054 - name: VID_AAI_PORT
55 value: "8443"
56 - name: VID_ECOMP_SHARED_CONTEXT_REST_URL
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000057 value: http://portalapps.{{ .Values.nsPrefix }}-portal:8989/ECOMPPORTAL/context
Mandeep Khindad6ea9872017-06-24 11:49:37 -040058 - name: VID_MSO_SERVER_URL
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000059 value: http://mso.{{ .Values.nsPrefix }}-mso:8080
Mandeep Khindad6ea9872017-06-24 11:49:37 -040060 - name: VID_MSO_PASS
61 value: 51515201a8d4c5c08d533db9bd1e1a9b
62 - name: MSO_DME2_SERVER_URL
63 value: http://localhost:8081
64 - name: MSO_DME2_ENABLED
65 value: "false"
66 - name: VID_ECOMP_REDIRECT_URL
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000067 value: http://portalapps.{{ .Values.nsPrefix }}-portal:8989/ECOMPPORTAL/login.htm
Mandeep Khindad6ea9872017-06-24 11:49:37 -040068 - name: VID_ECOMP_REST_URL
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000069 value: http://portalapps.{{ .Values.nsPrefix }}-portal:8989/ECOMPPORTAL/auxapi
Mandeep Khindad6ea9872017-06-24 11:49:37 -040070 - name: VID_CONTACT_US_LINK
71 value: https://todo_contact_us_link.com
72 - name: VID_UEB_URL_LIST
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000073 value: dmaap.{{ .Values.nsPrefix }}-message-router
Mandeep Khindad6ea9872017-06-24 11:49:37 -040074 - name: VID_MYSQL_HOST
75 value: vid-mariadb
76 - name: VID_MYSQL_PORT
77 value: "3306"
78 - name: VID_MYSQL_DBNAME
Mandeep Khindaaa5ea3e2017-08-21 16:11:03 -040079 value: vid_openecomp_epsdk
Mandeep Khindad6ea9872017-06-24 11:49:37 -040080 - name: VID_MYSQL_USER
81 value: vidadmin
82 - name: VID_MYSQL_PASS
83 value: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
84 - name: VID_MYSQL_MAXCONNECTIONS
85 value: "5"
kerenjbf4b4a02017-08-23 07:39:14 +000086 image: {{ .Values.image.vid }}
87 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040088 name: vid-server
yurynd0707be2017-09-27 14:54:18 +030089 lifecycle:
90 postStart:
91 exec:
92 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 -040093 ports:
94 - containerPort: 8080
yuryn8b3bc5a2017-09-13 19:21:03 +030095 volumeMounts:
96 - mountPath: /etc/localtime
97 name: localtime
98 readOnly: true
yurynd0707be2017-09-27 14:54:18 +030099 - mountPath: /var/log/onap
100 name: vid-logs
101 - mountPath: /tmp/logback.xml
102 name: vid-logback
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400103 readinessProbe:
104 tcpSocket:
105 port: 8080
106 initialDelaySeconds: 5
107 periodSeconds: 10
yurynd0707be2017-09-27 14:54:18 +0300108 - image: {{ .Values.image.filebeat }}
109 imagePullPolicy: {{ .Values.pullPolicy }}
110 name: filebeat-onap
111 volumeMounts:
112 - mountPath: /usr/share/filebeat/filebeat.yml
113 name: filebeat-conf
114 - mountPath: /var/log/onap
115 name: vid-logs
116 - mountPath: /usr/share/filebeat/data
117 name: vid-data-filebeat
yuryn8b3bc5a2017-09-13 19:21:03 +0300118 volumes:
119 - name: localtime
120 hostPath:
121 path: /etc/localtime
yurynd0707be2017-09-27 14:54:18 +0300122 - name: filebeat-conf
123 hostPath:
124 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/logback/filebeat.yml
125 - name: vid-logs
126 emptyDir: {}
127 - name: vid-data-filebeat
128 emptyDir: {}
129 - name: vid-logback
130 hostPath:
131 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/vid/logback.xml
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300132 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000133 - name: "{{ .Values.nsPrefix }}-docker-registry-key"