Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: portaldb |
| 5 | spec: |
| 6 | selector: |
| 7 | matchLabels: |
| 8 | app: portaldb |
| 9 | template: |
| 10 | metadata: |
| 11 | labels: |
| 12 | app: portaldb |
| 13 | name: portaldb |
| 14 | spec: |
| 15 | containers: |
| 16 | - image: nexus3.onap.org:10001/openecomp/portaldb:1.0-STAGING-latest |
| 17 | name: "portaldb" |
| 18 | env: |
| 19 | - name: MYSQL_HOST |
| 20 | value: portaldb.onap-portal |
| 21 | - name: MYSQL_ROOT_PASSWORD |
| 22 | value: password |
| 23 | volumeMounts: |
| 24 | - mountPath: /var/lib/mysql |
| 25 | name: portal-mariadb-data |
| 26 | ports: |
| 27 | - containerPort: 3306 |
| 28 | name: portaldb |
| 29 | readinessProbe: |
| 30 | tcpSocket: |
| 31 | port: 3306 |
| 32 | initialDelaySeconds: 5 |
| 33 | periodSeconds: 10 |
| 34 | volumes: |
| 35 | - name: portal-mariadb-data |
| 36 | hostPath: |
| 37 | path: /dockerdata-nfs/onapdemo/portal/mariadb/data |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame^] | 38 | imagePullSecrets: |
| 39 | - name: onap-docker-registry-key |