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