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 |
| 18 | annotations: |
| 19 | pod.beta.kubernetes.io/init-containers: '[ |
| 20 | { |
| 21 | "args": [ |
| 22 | "--container-name", |
| 23 | "vid-mariadb" |
| 24 | ], |
| 25 | "command": [ |
| 26 | "/root/ready.py" |
| 27 | ], |
| 28 | "env": [ |
| 29 | { |
| 30 | "name": "NAMESPACE", |
| 31 | "valueFrom": { |
| 32 | "fieldRef": { |
| 33 | "apiVersion": "v1", |
| 34 | "fieldPath": "metadata.namespace" |
| 35 | } |
| 36 | } |
| 37 | } |
| 38 | ], |
kerenj | bf4b4a0 | 2017-08-23 07:39:14 +0000 | [diff] [blame] | 39 | "image": "{{ .Values.image.readiness }}", |
| 40 | "imagePullPolicy": "{{ .Values.pullPolicy }}", |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 41 | "name": "vid-server-readiness" |
| 42 | } |
| 43 | ]' |
| 44 | spec: |
| 45 | containers: |
| 46 | - env: |
| 47 | - name: ASDC_CLIENT_REST_HOST |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 48 | value: sdc-be.{{ .Values.nsPrefix }}-sdc |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 49 | - name: ASDC_CLIENT_REST_AUTH |
| 50 | value: Basic dmlkOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU= |
| 51 | - name: ASDC_CLIENT_REST_PORT |
| 52 | value: "8080" |
| 53 | - name: VID_AAI_HOST |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 54 | value: aai-service.{{ .Values.nsPrefix }}-aai |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 55 | - name: VID_AAI_PORT |
| 56 | value: "8443" |
| 57 | - name: VID_ECOMP_SHARED_CONTEXT_REST_URL |
Rahul Sharma | 8a8ec82 | 2017-11-08 21:31:12 -0500 | [diff] [blame^] | 58 | value: http://portalapps.{{ .Values.nsPrefix }}-portal:8989/ONAPPORTAL/context |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 59 | - name: VID_MSO_SERVER_URL |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 60 | value: http://mso.{{ .Values.nsPrefix }}-mso:8080 |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 61 | - name: VID_MSO_PASS |
| 62 | value: 51515201a8d4c5c08d533db9bd1e1a9b |
| 63 | - name: MSO_DME2_SERVER_URL |
| 64 | value: http://localhost:8081 |
| 65 | - name: MSO_DME2_ENABLED |
| 66 | value: "false" |
| 67 | - name: VID_ECOMP_REDIRECT_URL |
Rahul Sharma | 8a8ec82 | 2017-11-08 21:31:12 -0500 | [diff] [blame^] | 68 | value: http://portalapps.{{ .Values.nsPrefix }}-portal:8989/ONAPPORTAL/login.htm |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 69 | - name: VID_ECOMP_REST_URL |
Rahul Sharma | 8a8ec82 | 2017-11-08 21:31:12 -0500 | [diff] [blame^] | 70 | value: http://portalapps.{{ .Values.nsPrefix }}-portal:8989/ONAPPORTAL/auxapi |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 71 | - name: VID_CONTACT_US_LINK |
| 72 | value: https://todo_contact_us_link.com |
| 73 | - name: VID_UEB_URL_LIST |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 74 | value: dmaap.{{ .Values.nsPrefix }}-message-router |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 75 | - name: VID_MYSQL_HOST |
| 76 | value: vid-mariadb |
| 77 | - name: VID_MYSQL_PORT |
| 78 | value: "3306" |
| 79 | - name: VID_MYSQL_DBNAME |
Mandeep Khinda | aa5ea3e | 2017-08-21 16:11:03 -0400 | [diff] [blame] | 80 | value: vid_openecomp_epsdk |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 81 | - name: VID_MYSQL_USER |
| 82 | value: vidadmin |
| 83 | - name: VID_MYSQL_PASS |
| 84 | value: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U |
| 85 | - name: VID_MYSQL_MAXCONNECTIONS |
| 86 | value: "5" |
kerenj | bf4b4a0 | 2017-08-23 07:39:14 +0000 | [diff] [blame] | 87 | image: {{ .Values.image.vid }} |
| 88 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 89 | name: vid-server |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 90 | lifecycle: |
| 91 | postStart: |
| 92 | exec: |
| 93 | 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] | 94 | ports: |
| 95 | - containerPort: 8080 |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 96 | volumeMounts: |
| 97 | - mountPath: /etc/localtime |
| 98 | name: localtime |
| 99 | readOnly: true |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 100 | - mountPath: /var/log/onap |
| 101 | name: vid-logs |
| 102 | - mountPath: /tmp/logback.xml |
| 103 | name: vid-logback |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 104 | readinessProbe: |
| 105 | tcpSocket: |
| 106 | port: 8080 |
| 107 | initialDelaySeconds: 5 |
| 108 | periodSeconds: 10 |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 109 | - image: {{ .Values.image.filebeat }} |
| 110 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 111 | name: filebeat-onap |
| 112 | volumeMounts: |
| 113 | - mountPath: /usr/share/filebeat/filebeat.yml |
| 114 | name: filebeat-conf |
| 115 | - mountPath: /var/log/onap |
| 116 | name: vid-logs |
| 117 | - mountPath: /usr/share/filebeat/data |
| 118 | name: vid-data-filebeat |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 119 | volumes: |
| 120 | - name: localtime |
| 121 | hostPath: |
| 122 | path: /etc/localtime |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 123 | - name: filebeat-conf |
| 124 | hostPath: |
| 125 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/logback/filebeat.yml |
| 126 | - name: vid-logs |
| 127 | emptyDir: {} |
| 128 | - name: vid-data-filebeat |
| 129 | emptyDir: {} |
| 130 | - name: vid-logback |
| 131 | hostPath: |
| 132 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/vid/logback.xml |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 133 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 134 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 135 | #{{ end }} |