Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: sdnc-dbhost |
| 5 | spec: |
| 6 | selector: |
| 7 | matchLabels: |
| 8 | app: sdnc-dbhost |
| 9 | template: |
| 10 | metadata: |
| 11 | labels: |
| 12 | app: sdnc-dbhost |
| 13 | name: sdnc-dbhost |
| 14 | spec: |
| 15 | containers: |
| 16 | - env: |
| 17 | - name: MYSQL_ROOT_PASSWORD |
| 18 | value: openECOMP1.0 |
| 19 | - name: MYSQL_ROOT_HOST |
| 20 | value: '%' |
| 21 | image: mysql/mysql-server:5.6 |
| 22 | name: sdnc-db-container |
| 23 | volumeMounts: |
| 24 | - mountPath: /var/lib/mysql |
| 25 | name: sdnc-data |
| 26 | ports: |
| 27 | - containerPort: 3306 |
| 28 | readinessProbe: |
| 29 | tcpSocket: |
| 30 | port: 3306 |
| 31 | initialDelaySeconds: 5 |
| 32 | periodSeconds: 10 |
| 33 | volumes: |
| 34 | - name: sdnc-data |
| 35 | hostPath: |
Munir Ahmad | e94258e | 2017-08-17 12:04:14 -0400 | [diff] [blame^] | 36 | path: /dockerdata-nfs/onapdemo/sdnc/data |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 37 | imagePullSecrets: |
| 38 | - name: onap-docker-registry-key |