vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 15 | #{{ if not .Values.disableVidVidServer }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 16 | apiVersion: extensions/v1beta1 |
| 17 | kind: Deployment |
| 18 | metadata: |
| 19 | labels: |
| 20 | app: vid-server |
| 21 | name: vid-server |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 22 | namespace: "{{ .Values.nsPrefix }}" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 23 | spec: |
vaibhav_16dec | 4930205 | 2018-02-15 10:00:06 +0000 | [diff] [blame] | 24 | replicas: {{ .Values.vidServerReplicas }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 25 | selector: |
| 26 | matchLabels: |
| 27 | app: vid-server |
| 28 | template: |
| 29 | metadata: |
| 30 | labels: |
| 31 | app: vid-server |
| 32 | name: vid-server |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 33 | spec: |
vasundhra | f2772b6 | 2017-11-22 13:23:04 +0000 | [diff] [blame] | 34 | initContainers: |
| 35 | - command: |
| 36 | - /root/ready.py |
| 37 | args: |
| 38 | - --container-name |
| 39 | - vid-mariadb |
| 40 | env: |
| 41 | - name: NAMESPACE |
| 42 | valueFrom: |
| 43 | fieldRef: |
| 44 | apiVersion: v1 |
| 45 | fieldPath: metadata.namespace |
| 46 | image: {{ .Values.image.readiness }} |
| 47 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 48 | name: vid-server-readiness |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 49 | containers: |
| 50 | - env: |
| 51 | - name: ASDC_CLIENT_REST_HOST |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 52 | value: sdc-be.{{ .Values.nsPrefix }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 53 | - name: ASDC_CLIENT_REST_AUTH |
| 54 | value: Basic dmlkOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU= |
| 55 | - name: ASDC_CLIENT_REST_PORT |
| 56 | value: "8080" |
| 57 | - name: VID_AAI_HOST |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 58 | value: aai-service.{{ .Values.nsPrefix }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 59 | - name: VID_AAI_PORT |
| 60 | value: "8443" |
| 61 | - name: VID_ECOMP_SHARED_CONTEXT_REST_URL |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 62 | value: http://portalapps.{{ .Values.nsPrefix }}:8989/ONAPPORTAL/context |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 63 | - name: VID_MSO_SERVER_URL |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 64 | value: http://mso.{{ .Values.nsPrefix }}:8080 |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 65 | - name: VID_MSO_PASS |
Alexis de Talhouët | f456f46 | 2017-11-30 12:48:44 -0500 | [diff] [blame] | 66 | value: OBF:1ih71i271vny1yf41ymf1ylz1yf21vn41hzj1icz |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 67 | - name: MSO_DME2_SERVER_URL |
| 68 | value: http://localhost:8081 |
| 69 | - name: MSO_DME2_ENABLED |
| 70 | value: "false" |
| 71 | - name: VID_ECOMP_REDIRECT_URL |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 72 | value: http://portalapps.{{ .Values.nsPrefix }}:8989/ONAPPORTAL/login.htm |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 73 | - name: VID_ECOMP_REST_URL |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 74 | value: http://portalapps.{{ .Values.nsPrefix }}:8989/ONAPPORTAL/auxapi |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 75 | - name: VID_CONTACT_US_LINK |
| 76 | value: https://todo_contact_us_link.com |
| 77 | - name: VID_UEB_URL_LIST |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 78 | value: dmaap.{{ .Values.nsPrefix }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 79 | - name: VID_MYSQL_HOST |
| 80 | value: vid-mariadb |
| 81 | - name: VID_MYSQL_PORT |
| 82 | value: "3306" |
| 83 | - name: VID_MYSQL_DBNAME |
Mandeep Khinda | aa5ea3e | 2017-08-21 16:11:03 -0400 | [diff] [blame] | 84 | value: vid_openecomp_epsdk |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 85 | - name: VID_MYSQL_USER |
| 86 | value: vidadmin |
| 87 | - name: VID_MYSQL_PASS |
| 88 | value: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U |
| 89 | - name: VID_MYSQL_MAXCONNECTIONS |
| 90 | value: "5" |
Pramod | 46bec90 | 2018-01-17 12:36:06 +0000 | [diff] [blame] | 91 | image: {{ .Values.image.vid }} |
kerenj | bf4b4a0 | 2017-08-23 07:39:14 +0000 | [diff] [blame] | 92 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 93 | name: vid-server |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 94 | lifecycle: |
| 95 | postStart: |
| 96 | exec: |
| 97 | 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 Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 98 | ports: |
| 99 | - containerPort: 8080 |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 100 | volumeMounts: |
| 101 | - mountPath: /etc/localtime |
| 102 | name: localtime |
| 103 | readOnly: true |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 104 | - mountPath: /var/log/onap |
| 105 | name: vid-logs |
| 106 | - mountPath: /tmp/logback.xml |
| 107 | name: vid-logback |
Pramod | 46bec90 | 2018-01-17 12:36:06 +0000 | [diff] [blame] | 108 | subPath: logback.xml |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 109 | readinessProbe: |
| 110 | tcpSocket: |
| 111 | port: 8080 |
| 112 | initialDelaySeconds: 5 |
| 113 | periodSeconds: 10 |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 114 | - image: {{ .Values.image.filebeat }} |
| 115 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 116 | name: filebeat-onap |
| 117 | volumeMounts: |
| 118 | - mountPath: /usr/share/filebeat/filebeat.yml |
| 119 | name: filebeat-conf |
Pramod | 46bec90 | 2018-01-17 12:36:06 +0000 | [diff] [blame] | 120 | subPath: filebeat.yml |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 121 | - mountPath: /var/log/onap |
| 122 | name: vid-logs |
| 123 | - mountPath: /usr/share/filebeat/data |
| 124 | name: vid-data-filebeat |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 125 | volumes: |
| 126 | - name: localtime |
| 127 | hostPath: |
| 128 | path: /etc/localtime |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 129 | - name: filebeat-conf |
Pramod | 46bec90 | 2018-01-17 12:36:06 +0000 | [diff] [blame] | 130 | configMap: |
| 131 | name: vid-filebeat-configmap |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 132 | - name: vid-logs |
| 133 | emptyDir: {} |
| 134 | - name: vid-data-filebeat |
| 135 | emptyDir: {} |
| 136 | - name: vid-logback |
Pramod | 46bec90 | 2018-01-17 12:36:06 +0000 | [diff] [blame] | 137 | configMap: |
| 138 | name: vid-log-configmap |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 139 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 140 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
Bharath Thiruveedula | 50c17b5 | 2017-12-11 23:43:32 +0530 | [diff] [blame] | 141 | #{{ end }} |