Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: mariadb |
| 5 | spec: |
| 6 | replicas: 1 |
| 7 | selector: |
| 8 | matchLabels: |
| 9 | app: mariadb |
| 10 | template: |
| 11 | metadata: |
| 12 | labels: |
| 13 | app: mariadb |
| 14 | name: mariadb |
| 15 | spec: |
| 16 | hostname: mariadb |
| 17 | containers: |
| 18 | - args: |
| 19 | image: nexus3.onap.org:10001/mariadb:10.1.11 |
| 20 | name: "mariadb" |
| 21 | env: |
| 22 | - name: MYSQL_ROOT_PASSWORD |
| 23 | value: password |
| 24 | - name: MARIADB_MAJOR |
| 25 | value: "10.1" |
| 26 | - name: MARIADB_VERSION |
| 27 | value: "10.1.11+maria-1~jessie" |
| 28 | volumeMounts: |
| 29 | - mountPath: /etc/mysql/conf.d |
| 30 | name: mso-mariadb-conf |
Munir Ahmad | 0b13329 | 2017-08-15 15:36:46 -0400 | [diff] [blame] | 31 | - mountPath: /var/lib/mysql |
| 32 | name: mso-mariadb-mysql |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 33 | - mountPath: /docker-entrypoint-initdb.d |
| 34 | name: mso-mariadb-docker-entrypoint-initdb |
| 35 | ports: |
| 36 | - containerPort: 3306 |
| 37 | name: mariadb |
| 38 | readinessProbe: |
| 39 | tcpSocket: |
| 40 | port: 3306 |
| 41 | initialDelaySeconds: 5 |
| 42 | periodSeconds: 10 |
| 43 | volumes: |
| 44 | - name: mso-mariadb-conf |
| 45 | hostPath: |
Munir Ahmad | 0b13329 | 2017-08-15 15:36:46 -0400 | [diff] [blame] | 46 | path: /dockerdata/onapdemo/mso/mariadb/conf.d |
| 47 | - name: mso-mariadb-mysql |
| 48 | hostPath: |
| 49 | path: /dockerdata/onapdemo/mso/mariadb/mysql |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 50 | - name: mso-mariadb-docker-entrypoint-initdb |
| 51 | hostPath: |
Munir Ahmad | 76610be | 2017-08-17 11:56:15 -0400 | [diff] [blame^] | 52 | path: /dockerdata-nfs/onapdemo/mso/mariadb/docker-entrypoint-initdb.d |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 53 | imagePullSecrets: |
| 54 | - name: onap-docker-registry-key |