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 | spec: | ||||
15 | hostname: mariadb | ||||
16 | containers: | ||||
17 | - command: | ||||
18 | - /bin/bash | ||||
19 | - -c | ||||
20 | - exec bash /tmp/do-start.sh | ||||
21 | image: nexus3.onap.org:10001/openecomp/policy/policy-db:1.0-STAGING-latest | ||||
22 | name: mariadb | ||||
23 | ports: | ||||
24 | - containerPort: 3306 | ||||
25 | readinessProbe: | ||||
26 | tcpSocket: | ||||
27 | port: 3306 | ||||
28 | initialDelaySeconds: 5 | ||||
29 | periodSeconds: 10 |