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 |
| 32 | - mountPath: /docker-entrypoint-initdb.d |
| 33 | name: mso-mariadb-docker-entrypoint-initdb |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 34 | - mountPath: /var/lib/mysql |
| 35 | name: mso-mariadb-data |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 36 | ports: |
| 37 | - containerPort: 3306 |
| 38 | name: mariadb |
| 39 | readinessProbe: |
| 40 | tcpSocket: |
| 41 | port: 3306 |
| 42 | initialDelaySeconds: 5 |
| 43 | periodSeconds: 10 |
| 44 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 45 | - name: localtime |
| 46 | hostPath: |
| 47 | path: /etc/localtime |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 48 | - name: mso-mariadb-conf |
| 49 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 50 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/mso/mariadb/conf.d |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 51 | - name: mso-mariadb-docker-entrypoint-initdb |
| 52 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 53 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/mso/mariadb/docker-entrypoint-initdb.d |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 54 | - name: mso-mariadb-data |
| 55 | persistentVolumeClaim: |
| 56 | claimName: mso-db |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 57 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 58 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 59 | #{{ end }} |