Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | labels: |
| 5 | app: vid-server |
| 6 | name: vid-server |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 7 | namespace: "{{ .Values.nsPrefix }}-vid" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 8 | spec: |
| 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 | ], |
kerenj | bf4b4a0 | 2017-08-23 07:39:14 +0000 | [diff] [blame] | 38 | "image": "{{ .Values.image.readiness }}", |
| 39 | "imagePullPolicy": "{{ .Values.pullPolicy }}", |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 40 | "name": "vid-server-readiness" |
| 41 | } |
| 42 | ]' |
| 43 | spec: |
| 44 | containers: |
| 45 | - env: |
| 46 | - name: ASDC_CLIENT_REST_HOST |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 47 | value: sdc-be.{{ .Values.nsPrefix }}-sdc |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 48 | - name: ASDC_CLIENT_REST_AUTH |
| 49 | value: Basic dmlkOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU= |
| 50 | - name: ASDC_CLIENT_REST_PORT |
| 51 | value: "8080" |
| 52 | - name: VID_AAI_HOST |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 53 | value: aai-service.{{ .Values.nsPrefix }}-aai |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 54 | - name: VID_AAI_PORT |
| 55 | value: "8443" |
| 56 | - name: VID_ECOMP_SHARED_CONTEXT_REST_URL |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 57 | value: http://portalapps.{{ .Values.nsPrefix }}-portal:8989/ECOMPPORTAL/context |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 58 | - name: VID_MSO_SERVER_URL |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 59 | value: http://mso.{{ .Values.nsPrefix }}-mso:8080 |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 60 | - 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 Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 67 | value: http://portalapps.{{ .Values.nsPrefix }}-portal:8989/ECOMPPORTAL/login.htm |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 68 | - name: VID_ECOMP_REST_URL |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 69 | value: http://portalapps.{{ .Values.nsPrefix }}-portal:8989/ECOMPPORTAL/auxapi |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 70 | - name: VID_CONTACT_US_LINK |
| 71 | value: https://todo_contact_us_link.com |
| 72 | - name: VID_UEB_URL_LIST |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 73 | value: dmaap.{{ .Values.nsPrefix }}-message-router |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 74 | - name: VID_MYSQL_HOST |
| 75 | value: vid-mariadb |
| 76 | - name: VID_MYSQL_PORT |
| 77 | value: "3306" |
| 78 | - name: VID_MYSQL_DBNAME |
Mandeep Khinda | aa5ea3e | 2017-08-21 16:11:03 -0400 | [diff] [blame] | 79 | value: vid_openecomp_epsdk |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 80 | - name: VID_MYSQL_USER |
| 81 | value: vidadmin |
| 82 | - name: VID_MYSQL_PASS |
| 83 | value: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U |
| 84 | - name: VID_MYSQL_MAXCONNECTIONS |
| 85 | value: "5" |
kerenj | bf4b4a0 | 2017-08-23 07:39:14 +0000 | [diff] [blame] | 86 | image: {{ .Values.image.vid }} |
| 87 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 88 | name: vid-server |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 89 | 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 Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 93 | ports: |
| 94 | - containerPort: 8080 |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 95 | volumeMounts: |
| 96 | - mountPath: /etc/localtime |
| 97 | name: localtime |
| 98 | readOnly: true |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 99 | - mountPath: /var/log/onap |
| 100 | name: vid-logs |
| 101 | - mountPath: /tmp/logback.xml |
| 102 | name: vid-logback |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 103 | readinessProbe: |
| 104 | tcpSocket: |
| 105 | port: 8080 |
| 106 | initialDelaySeconds: 5 |
| 107 | periodSeconds: 10 |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 108 | - 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 |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 118 | volumes: |
| 119 | - name: localtime |
| 120 | hostPath: |
| 121 | path: /etc/localtime |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 122 | - 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 Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 132 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 133 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |