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