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