yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disablePortalPortaldb }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | name: portaldb |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 6 | namespace: "{{ .Values.nsPrefix }}-portal" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 7 | spec: |
| 8 | selector: |
| 9 | matchLabels: |
| 10 | app: portaldb |
| 11 | template: |
| 12 | metadata: |
| 13 | labels: |
| 14 | app: portaldb |
| 15 | name: portaldb |
| 16 | spec: |
| 17 | containers: |
Mandeep Khinda | 90ec598 | 2017-10-17 18:08:34 +0000 | [diff] [blame] | 18 | - image: {{ .Values.image.portaldb}} |
kerenj | cbac010 | 2017-08-23 10:22:33 +0000 | [diff] [blame] | 19 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 20 | name: "portaldb" |
| 21 | env: |
| 22 | - name: MYSQL_HOST |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 23 | value: "portaldb.{{ .Values.nsPrefix }}-portal" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 24 | - name: MYSQL_ROOT_PASSWORD |
Mandeep Khinda | 90ec598 | 2017-10-17 18:08:34 +0000 | [diff] [blame] | 25 | value: Aa123456 |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 26 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 27 | - mountPath: /etc/localtime |
| 28 | name: localtime |
| 29 | readOnly: true |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 30 | - mountPath: /var/lib/mysql |
| 31 | name: portal-mariadb-data |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 32 | - mountPath: /var/log/onap |
| 33 | name: portal-logs |
| 34 | - mountPath: /tmp/logback.xml |
| 35 | name: portal-logback |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 36 | ports: |
| 37 | - containerPort: 3306 |
| 38 | name: portaldb |
| 39 | readinessProbe: |
| 40 | tcpSocket: |
| 41 | port: 3306 |
| 42 | initialDelaySeconds: 5 |
| 43 | periodSeconds: 10 |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 44 | - image: {{ .Values.image.filebeat }} |
| 45 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 46 | name: filebeat-onap |
| 47 | volumeMounts: |
| 48 | - mountPath: /usr/share/filebeat/filebeat.yml |
| 49 | name: filebeat-conf |
| 50 | - mountPath: /var/log/onap |
| 51 | name: portal-logs |
| 52 | - mountPath: /usr/share/filebeat/data |
| 53 | name: portal-data-filebeat |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 54 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 55 | - name: localtime |
| 56 | hostPath: |
| 57 | path: /etc/localtime |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 58 | - name: portal-mariadb-data |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 59 | persistentVolumeClaim: |
| 60 | claimName: portal-db |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 61 | - name: filebeat-conf |
| 62 | hostPath: |
| 63 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/logback/filebeat.yml |
| 64 | - name: portal-logs |
| 65 | emptyDir: {} |
| 66 | - name: portal-data-filebeat |
| 67 | emptyDir: {} |
| 68 | - name: portal-logback |
| 69 | hostPath: |
| 70 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/portal/portal-db/logback.xml |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 71 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 72 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 73 | #{{ end }} |