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