yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableVidVidServer }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | labels: |
| 6 | app: vid-server |
| 7 | name: vid-server |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 8 | namespace: "{{ .Values.nsPrefix }}-vid" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 9 | spec: |
| 10 | selector: |
| 11 | matchLabels: |
| 12 | app: vid-server |
| 13 | template: |
| 14 | metadata: |
| 15 | labels: |
| 16 | app: vid-server |
| 17 | name: vid-server |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 18 | spec: |
vasundhra | f2772b6 | 2017-11-22 13:23:04 +0000 | [diff] [blame^] | 19 | 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 Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 34 | containers: |
| 35 | - env: |
| 36 | - name: ASDC_CLIENT_REST_HOST |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 37 | value: sdc-be.{{ .Values.nsPrefix }}-sdc |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 38 | - name: ASDC_CLIENT_REST_AUTH |
| 39 | value: Basic dmlkOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU= |
| 40 | - name: ASDC_CLIENT_REST_PORT |
| 41 | value: "8080" |
| 42 | - name: VID_AAI_HOST |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 43 | value: aai-service.{{ .Values.nsPrefix }}-aai |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 44 | - name: VID_AAI_PORT |
| 45 | value: "8443" |
| 46 | - name: VID_ECOMP_SHARED_CONTEXT_REST_URL |
Rahul Sharma | 8a8ec82 | 2017-11-08 21:31:12 -0500 | [diff] [blame] | 47 | value: http://portalapps.{{ .Values.nsPrefix }}-portal:8989/ONAPPORTAL/context |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 48 | - name: VID_MSO_SERVER_URL |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 49 | value: http://mso.{{ .Values.nsPrefix }}-mso:8080 |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 50 | - 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 Sharma | 8a8ec82 | 2017-11-08 21:31:12 -0500 | [diff] [blame] | 57 | value: http://portalapps.{{ .Values.nsPrefix }}-portal:8989/ONAPPORTAL/login.htm |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 58 | - name: VID_ECOMP_REST_URL |
Rahul Sharma | 8a8ec82 | 2017-11-08 21:31:12 -0500 | [diff] [blame] | 59 | value: http://portalapps.{{ .Values.nsPrefix }}-portal:8989/ONAPPORTAL/auxapi |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 60 | - name: VID_CONTACT_US_LINK |
| 61 | value: https://todo_contact_us_link.com |
| 62 | - name: VID_UEB_URL_LIST |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 63 | value: dmaap.{{ .Values.nsPrefix }}-message-router |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 64 | - name: VID_MYSQL_HOST |
| 65 | value: vid-mariadb |
| 66 | - name: VID_MYSQL_PORT |
| 67 | value: "3306" |
| 68 | - name: VID_MYSQL_DBNAME |
Mandeep Khinda | aa5ea3e | 2017-08-21 16:11:03 -0400 | [diff] [blame] | 69 | value: vid_openecomp_epsdk |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 70 | - name: VID_MYSQL_USER |
| 71 | value: vidadmin |
| 72 | - name: VID_MYSQL_PASS |
| 73 | value: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U |
| 74 | - name: VID_MYSQL_MAXCONNECTIONS |
| 75 | value: "5" |
kerenj | bf4b4a0 | 2017-08-23 07:39:14 +0000 | [diff] [blame] | 76 | image: {{ .Values.image.vid }} |
| 77 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 78 | name: vid-server |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 79 | 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 Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 83 | ports: |
| 84 | - containerPort: 8080 |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 85 | volumeMounts: |
| 86 | - mountPath: /etc/localtime |
| 87 | name: localtime |
| 88 | readOnly: true |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 89 | - mountPath: /var/log/onap |
| 90 | name: vid-logs |
| 91 | - mountPath: /tmp/logback.xml |
| 92 | name: vid-logback |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 93 | readinessProbe: |
| 94 | tcpSocket: |
| 95 | port: 8080 |
| 96 | initialDelaySeconds: 5 |
| 97 | periodSeconds: 10 |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 98 | - 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 |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 108 | volumes: |
| 109 | - name: localtime |
| 110 | hostPath: |
| 111 | path: /etc/localtime |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 112 | - 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 Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 122 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 123 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
vasundhra | f2772b6 | 2017-11-22 13:23:04 +0000 | [diff] [blame^] | 124 | #{{ end }} |