Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | labels: |
| 5 | app: vid-mariadb |
| 6 | name: vid-mariadb |
| 7 | spec: |
| 8 | selector: |
| 9 | matchLabels: |
| 10 | app: vid-mariadb |
| 11 | template: |
| 12 | metadata: |
| 13 | labels: |
| 14 | app: vid-mariadb |
| 15 | name: vid-mariadb |
| 16 | spec: |
| 17 | containers: |
| 18 | - image: mariadb:10 |
| 19 | name: vid-mariadb |
| 20 | env: |
| 21 | - name: MYSQL_DATABASE |
| 22 | value: vid_openecomp |
| 23 | - name: MYSQL_USER |
| 24 | value: vidadmin |
| 25 | - name: MYSQL_PASSWORD |
| 26 | value: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U |
| 27 | - name: MYSQL_ROOT_PASSWORD |
| 28 | value: LF+tp_1WqgSY |
| 29 | volumeMounts: |
| 30 | - mountPath: /var/lib/mysql |
| 31 | name: vid-mariadb-data |
| 32 | - mountPath: /docker-entrypoint-initdb.d/vid-pre-init.sql |
| 33 | name: vid-pre-init |
| 34 | - mountPath: /etc/mysql/my.cnf |
| 35 | name: my-cnf |
| 36 | ports: |
| 37 | - containerPort: 3306 |
| 38 | readinessProbe: |
| 39 | tcpSocket: |
| 40 | port: 3306 |
| 41 | initialDelaySeconds: 5 |
| 42 | periodSeconds: 10 |
| 43 | volumes: |
| 44 | - name: vid-mariadb-data |
| 45 | hostPath: |
Munir Ahmad | e94258e | 2017-08-17 12:04:14 -0400 | [diff] [blame] | 46 | path: /dockerdata-nfs/onapdemo/vid/mariadb/data |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 47 | - name: vid-pre-init |
| 48 | hostPath: |
Munir Ahmad | e94258e | 2017-08-17 12:04:14 -0400 | [diff] [blame] | 49 | path: /dockerdata-nfs/onapdemo/vid/vid/lf_config/vid-pre-init.sql |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 50 | - name: my-cnf |
| 51 | hostPath: |
Munir Ahmad | e94258e | 2017-08-17 12:04:14 -0400 | [diff] [blame] | 52 | path: /dockerdata-nfs/onapdemo/vid/vid/lf_config/vid-my.cnf |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 53 | imagePullSecrets: |
| 54 | - name: onap-docker-registry-key |