yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableMsoMariadb }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | name: mariadb |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 6 | namespace: "{{ .Values.nsPrefix }}-mso" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 7 | spec: |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 8 | selector: |
| 9 | matchLabels: |
| 10 | app: mariadb |
| 11 | template: |
| 12 | metadata: |
| 13 | labels: |
| 14 | app: mariadb |
| 15 | name: mariadb |
| 16 | spec: |
| 17 | hostname: mariadb |
| 18 | containers: |
| 19 | - args: |
kerenj | 74d723a | 2017-08-22 15:27:04 +0000 | [diff] [blame] | 20 | image: {{ .Values.image.mariadb }} |
| 21 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 22 | name: "mariadb" |
| 23 | env: |
| 24 | - name: MYSQL_ROOT_PASSWORD |
| 25 | value: password |
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: /etc/mysql/conf.d |
| 31 | name: mso-mariadb-conf |
mayankg2703 | 5cade6a | 2018-01-15 09:50:15 +0000 | [diff] [blame] | 32 | - mountPath: /docker-entrypoint-initdb.d/02-load-additional-changes.sh |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 33 | name: mso-mariadb-docker-entrypoint-initdb |
mayankg2703 | 5cade6a | 2018-01-15 09:50:15 +0000 | [diff] [blame] | 34 | subPath: 02-load-additional-changes.sh |
| 35 | - mountPath: /docker-entrypoint-initdb.d/01-load-default-sql-files.sh |
| 36 | name: mso-mariadb-docker-entrypoint-initdb |
| 37 | subPath: 01-load-default-sql-files.sh |
| 38 | - mountPath: /docker-entrypoint-initdb.d/db-sql-scripts/bulkload-files/automated-tests |
| 39 | name: mso-mariadb-docker-entrypoint-automated-tests |
| 40 | - mountPath: /docker-entrypoint-initdb.d/db-sql-scripts/bulkload-files/default |
| 41 | name: mso-mariadb-docker-entrypoint-bulkload-default |
| 42 | - mountPath: /docker-entrypoint-initdb.d/db-sql-scripts/bulkload-files/demo-dns |
| 43 | name: mso-mariadb-docker-entrypoint-demo-dns |
| 44 | - mountPath: /docker-entrypoint-initdb.d/db-sql-scripts/bulkload-files/demo-vfw |
| 45 | name: mso-mariadb-docker-entrypoint-demo-vfw |
| 46 | - mountPath: /docker-entrypoint-initdb.d/db-sql-scripts/camunda |
| 47 | name: mso-mariadb-docker-entrypoint-camunda |
| 48 | - mountPath: /docker-entrypoint-initdb.d/db-sql-scripts/main-schemas |
| 49 | name: mso-mariadb-docker-entrypoint-main-schemas |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 50 | - mountPath: /var/lib/mysql |
| 51 | name: mso-mariadb-data |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 52 | ports: |
| 53 | - containerPort: 3306 |
| 54 | name: mariadb |
| 55 | readinessProbe: |
| 56 | tcpSocket: |
| 57 | port: 3306 |
| 58 | initialDelaySeconds: 5 |
| 59 | periodSeconds: 10 |
| 60 | volumes: |
mayankg2703 | 5cade6a | 2018-01-15 09:50:15 +0000 | [diff] [blame] | 61 | - name: mso-mariadb-conf |
| 62 | configMap: |
| 63 | name: mso-confd-configmap |
| 64 | - name: mso-mariadb-docker-entrypoint-initdb |
| 65 | configMap: |
| 66 | name: mso-docker-entry-initd-configmap |
| 67 | - name: mso-mariadb-docker-entrypoint-automated-tests |
| 68 | configMap: |
| 69 | name: mso-automated-tests-configmap |
| 70 | - name: mso-mariadb-docker-entrypoint-bulkload-default |
| 71 | configMap: |
| 72 | name: mso-bulkload-default-configmap |
| 73 | - name: mso-mariadb-docker-entrypoint-demo-dns |
| 74 | configMap: |
| 75 | name: mso-demo-dns-configmap |
| 76 | - name: mso-mariadb-docker-entrypoint-demo-vfw |
| 77 | configMap: |
| 78 | name: mso-demo-vfw-configmap |
| 79 | - name: mso-mariadb-docker-entrypoint-camunda |
| 80 | configMap: |
| 81 | name: mso-scripts-camunda-configmap |
| 82 | - name: mso-mariadb-docker-entrypoint-main-schemas |
| 83 | configMap: |
| 84 | name: mso-main-schemas-configmap |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 85 | - name: localtime |
| 86 | hostPath: |
| 87 | path: /etc/localtime |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 88 | - name: mso-mariadb-data |
| 89 | persistentVolumeClaim: |
| 90 | claimName: mso-db |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 91 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 92 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
mayankg2703 | 5cade6a | 2018-01-15 09:50:15 +0000 | [diff] [blame] | 93 | #{{ end }} |