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 |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame^] | 8 | namespace: "{{ .Values.nsPrefix }}" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 9 | spec: |
vaibhav_16dec | 4930205 | 2018-02-15 10:00:06 +0000 | [diff] [blame] | 10 | replicas: {{ .Values.vidServerReplicas }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 11 | selector: |
| 12 | matchLabels: |
| 13 | app: vid-server |
| 14 | template: |
| 15 | metadata: |
| 16 | labels: |
| 17 | app: vid-server |
| 18 | name: vid-server |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 19 | spec: |
vasundhra | f2772b6 | 2017-11-22 13:23:04 +0000 | [diff] [blame] | 20 | 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 Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 35 | containers: |
| 36 | - env: |
| 37 | - name: ASDC_CLIENT_REST_HOST |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame^] | 38 | value: sdc-be.{{ .Values.nsPrefix }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 39 | - name: ASDC_CLIENT_REST_AUTH |
| 40 | value: Basic dmlkOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU= |
| 41 | - name: ASDC_CLIENT_REST_PORT |
| 42 | value: "8080" |
| 43 | - name: VID_AAI_HOST |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame^] | 44 | value: aai-service.{{ .Values.nsPrefix }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 45 | - name: VID_AAI_PORT |
| 46 | value: "8443" |
| 47 | - name: VID_ECOMP_SHARED_CONTEXT_REST_URL |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame^] | 48 | value: http://portalapps.{{ .Values.nsPrefix }}:8989/ONAPPORTAL/context |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 49 | - name: VID_MSO_SERVER_URL |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame^] | 50 | value: http://mso.{{ .Values.nsPrefix }}:8080 |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 51 | - name: VID_MSO_PASS |
Alexis de Talhouƫt | f456f46 | 2017-11-30 12:48:44 -0500 | [diff] [blame] | 52 | value: OBF:1ih71i271vny1yf41ymf1ylz1yf21vn41hzj1icz |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 53 | - name: MSO_DME2_SERVER_URL |
| 54 | value: http://localhost:8081 |
| 55 | - name: MSO_DME2_ENABLED |
| 56 | value: "false" |
| 57 | - name: VID_ECOMP_REDIRECT_URL |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame^] | 58 | value: http://portalapps.{{ .Values.nsPrefix }}:8989/ONAPPORTAL/login.htm |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 59 | - name: VID_ECOMP_REST_URL |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame^] | 60 | value: http://portalapps.{{ .Values.nsPrefix }}:8989/ONAPPORTAL/auxapi |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 61 | - name: VID_CONTACT_US_LINK |
| 62 | value: https://todo_contact_us_link.com |
| 63 | - name: VID_UEB_URL_LIST |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame^] | 64 | value: dmaap.{{ .Values.nsPrefix }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 65 | - name: VID_MYSQL_HOST |
| 66 | value: vid-mariadb |
| 67 | - name: VID_MYSQL_PORT |
| 68 | value: "3306" |
| 69 | - name: VID_MYSQL_DBNAME |
Mandeep Khinda | aa5ea3e | 2017-08-21 16:11:03 -0400 | [diff] [blame] | 70 | value: vid_openecomp_epsdk |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 71 | - name: VID_MYSQL_USER |
| 72 | value: vidadmin |
| 73 | - name: VID_MYSQL_PASS |
| 74 | value: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U |
| 75 | - name: VID_MYSQL_MAXCONNECTIONS |
| 76 | value: "5" |
Pramod | 46bec90 | 2018-01-17 12:36:06 +0000 | [diff] [blame] | 77 | image: {{ .Values.image.vid }} |
kerenj | bf4b4a0 | 2017-08-23 07:39:14 +0000 | [diff] [blame] | 78 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 79 | name: vid-server |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 80 | 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 Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 84 | ports: |
| 85 | - containerPort: 8080 |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 86 | volumeMounts: |
| 87 | - mountPath: /etc/localtime |
| 88 | name: localtime |
| 89 | readOnly: true |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 90 | - mountPath: /var/log/onap |
| 91 | name: vid-logs |
| 92 | - mountPath: /tmp/logback.xml |
| 93 | name: vid-logback |
Pramod | 46bec90 | 2018-01-17 12:36:06 +0000 | [diff] [blame] | 94 | subPath: logback.xml |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 95 | readinessProbe: |
| 96 | tcpSocket: |
| 97 | port: 8080 |
| 98 | initialDelaySeconds: 5 |
| 99 | periodSeconds: 10 |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 100 | - 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 |
Pramod | 46bec90 | 2018-01-17 12:36:06 +0000 | [diff] [blame] | 106 | subPath: filebeat.yml |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 107 | - mountPath: /var/log/onap |
| 108 | name: vid-logs |
| 109 | - mountPath: /usr/share/filebeat/data |
| 110 | name: vid-data-filebeat |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 111 | volumes: |
| 112 | - name: localtime |
| 113 | hostPath: |
| 114 | path: /etc/localtime |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 115 | - name: filebeat-conf |
Pramod | 46bec90 | 2018-01-17 12:36:06 +0000 | [diff] [blame] | 116 | configMap: |
| 117 | name: vid-filebeat-configmap |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 118 | - name: vid-logs |
| 119 | emptyDir: {} |
| 120 | - name: vid-data-filebeat |
| 121 | emptyDir: {} |
| 122 | - name: vid-logback |
Pramod | 46bec90 | 2018-01-17 12:36:06 +0000 | [diff] [blame] | 123 | configMap: |
| 124 | name: vid-log-configmap |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 125 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 126 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
Bharath Thiruveedula | 50c17b5 | 2017-12-11 23:43:32 +0530 | [diff] [blame] | 127 | #{{ end }} |