blob: a0569abc935c340b99df0d8373b357bcfc72fdee [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
BorislavG8bfc6cf2018-02-27 15:04:26 +00008 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04009spec:
vaibhav_16dec49302052018-02-15 10:00:06 +000010 replicas: {{ .Values.vidServerReplicas }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040011 selector:
12 matchLabels:
13 app: vid-server
14 template:
15 metadata:
16 labels:
17 app: vid-server
18 name: vid-server
Mandeep Khindad6ea9872017-06-24 11:49:37 -040019 spec:
vasundhraf2772b62017-11-22 13:23:04 +000020 initContainers:
21 - command:
22 - /root/ready.py
23 args:
24 - --container-name
25 - vid-mariadb
26 env:
27 - name: NAMESPACE
28 valueFrom:
29 fieldRef:
30 apiVersion: v1
31 fieldPath: metadata.namespace
32 image: {{ .Values.image.readiness }}
33 imagePullPolicy: {{ .Values.pullPolicy }}
34 name: vid-server-readiness
Mandeep Khindad6ea9872017-06-24 11:49:37 -040035 containers:
36 - env:
37 - name: ASDC_CLIENT_REST_HOST
BorislavG8bfc6cf2018-02-27 15:04:26 +000038 value: sdc-be.{{ .Values.nsPrefix }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040039 - name: ASDC_CLIENT_REST_AUTH
40 value: Basic dmlkOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=
41 - name: ASDC_CLIENT_REST_PORT
42 value: "8080"
43 - name: VID_AAI_HOST
BorislavG8bfc6cf2018-02-27 15:04:26 +000044 value: aai-service.{{ .Values.nsPrefix }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040045 - name: VID_AAI_PORT
46 value: "8443"
47 - name: VID_ECOMP_SHARED_CONTEXT_REST_URL
BorislavG8bfc6cf2018-02-27 15:04:26 +000048 value: http://portalapps.{{ .Values.nsPrefix }}:8989/ONAPPORTAL/context
Mandeep Khindad6ea9872017-06-24 11:49:37 -040049 - name: VID_MSO_SERVER_URL
BorislavG8bfc6cf2018-02-27 15:04:26 +000050 value: http://mso.{{ .Values.nsPrefix }}:8080
Mandeep Khindad6ea9872017-06-24 11:49:37 -040051 - name: VID_MSO_PASS
Alexis de Talhouƫtf456f462017-11-30 12:48:44 -050052 value: OBF:1ih71i271vny1yf41ymf1ylz1yf21vn41hzj1icz
Mandeep Khindad6ea9872017-06-24 11:49:37 -040053 - name: MSO_DME2_SERVER_URL
54 value: http://localhost:8081
55 - name: MSO_DME2_ENABLED
56 value: "false"
57 - name: VID_ECOMP_REDIRECT_URL
BorislavG8bfc6cf2018-02-27 15:04:26 +000058 value: http://portalapps.{{ .Values.nsPrefix }}:8989/ONAPPORTAL/login.htm
Mandeep Khindad6ea9872017-06-24 11:49:37 -040059 - name: VID_ECOMP_REST_URL
BorislavG8bfc6cf2018-02-27 15:04:26 +000060 value: http://portalapps.{{ .Values.nsPrefix }}:8989/ONAPPORTAL/auxapi
Mandeep Khindad6ea9872017-06-24 11:49:37 -040061 - name: VID_CONTACT_US_LINK
62 value: https://todo_contact_us_link.com
63 - name: VID_UEB_URL_LIST
BorislavG8bfc6cf2018-02-27 15:04:26 +000064 value: dmaap.{{ .Values.nsPrefix }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040065 - name: VID_MYSQL_HOST
66 value: vid-mariadb
67 - name: VID_MYSQL_PORT
68 value: "3306"
69 - name: VID_MYSQL_DBNAME
Mandeep Khindaaa5ea3e2017-08-21 16:11:03 -040070 value: vid_openecomp_epsdk
Mandeep Khindad6ea9872017-06-24 11:49:37 -040071 - name: VID_MYSQL_USER
72 value: vidadmin
73 - name: VID_MYSQL_PASS
74 value: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
75 - name: VID_MYSQL_MAXCONNECTIONS
76 value: "5"
Pramod46bec902018-01-17 12:36:06 +000077 image: {{ .Values.image.vid }}
kerenjbf4b4a02017-08-23 07:39:14 +000078 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040079 name: vid-server
yurynd0707be2017-09-27 14:54:18 +030080 lifecycle:
81 postStart:
82 exec:
83 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 -040084 ports:
85 - containerPort: 8080
yuryn8b3bc5a2017-09-13 19:21:03 +030086 volumeMounts:
87 - mountPath: /etc/localtime
88 name: localtime
89 readOnly: true
yurynd0707be2017-09-27 14:54:18 +030090 - mountPath: /var/log/onap
91 name: vid-logs
92 - mountPath: /tmp/logback.xml
93 name: vid-logback
Pramod46bec902018-01-17 12:36:06 +000094 subPath: logback.xml
Mandeep Khindad6ea9872017-06-24 11:49:37 -040095 readinessProbe:
96 tcpSocket:
97 port: 8080
98 initialDelaySeconds: 5
99 periodSeconds: 10
yurynd0707be2017-09-27 14:54:18 +0300100 - image: {{ .Values.image.filebeat }}
101 imagePullPolicy: {{ .Values.pullPolicy }}
102 name: filebeat-onap
103 volumeMounts:
104 - mountPath: /usr/share/filebeat/filebeat.yml
105 name: filebeat-conf
Pramod46bec902018-01-17 12:36:06 +0000106 subPath: filebeat.yml
yurynd0707be2017-09-27 14:54:18 +0300107 - mountPath: /var/log/onap
108 name: vid-logs
109 - mountPath: /usr/share/filebeat/data
110 name: vid-data-filebeat
yuryn8b3bc5a2017-09-13 19:21:03 +0300111 volumes:
112 - name: localtime
113 hostPath:
114 path: /etc/localtime
yurynd0707be2017-09-27 14:54:18 +0300115 - name: filebeat-conf
Pramod46bec902018-01-17 12:36:06 +0000116 configMap:
117 name: vid-filebeat-configmap
yurynd0707be2017-09-27 14:54:18 +0300118 - name: vid-logs
119 emptyDir: {}
120 - name: vid-data-filebeat
121 emptyDir: {}
122 - name: vid-logback
Pramod46bec902018-01-17 12:36:06 +0000123 configMap:
124 name: vid-log-configmap
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300125 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000126 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
Bharath Thiruveedula50c17b52017-12-11 23:43:32 +0530127#{{ end }}