Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: mariadb |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 5 | namespace: "{{ .Values.nsPrefix }}-mso" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 6 | spec: |
| 7 | replicas: 1 |
| 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 |
| 26 | - name: MARIADB_MAJOR |
| 27 | value: "10.1" |
| 28 | - name: MARIADB_VERSION |
| 29 | value: "10.1.11+maria-1~jessie" |
| 30 | volumeMounts: |
| 31 | - mountPath: /etc/mysql/conf.d |
| 32 | name: mso-mariadb-conf |
| 33 | - mountPath: /docker-entrypoint-initdb.d |
| 34 | name: mso-mariadb-docker-entrypoint-initdb |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 35 | - mountPath: /var/lib/mysql |
| 36 | name: mso-mariadb-data |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 37 | ports: |
| 38 | - containerPort: 3306 |
| 39 | name: mariadb |
| 40 | readinessProbe: |
| 41 | tcpSocket: |
| 42 | port: 3306 |
| 43 | initialDelaySeconds: 5 |
| 44 | periodSeconds: 10 |
| 45 | volumes: |
| 46 | - name: mso-mariadb-conf |
| 47 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 48 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/mso/mariadb/conf.d |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 49 | - name: mso-mariadb-docker-entrypoint-initdb |
| 50 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 51 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/mso/mariadb/docker-entrypoint-initdb.d |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 52 | - name: mso-mariadb-data |
| 53 | persistentVolumeClaim: |
| 54 | claimName: mso-db |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 55 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 56 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |