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 |
kerenj | 6ca15a7 | 2017-08-23 12:05:23 +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: appc-dbhost |
| 10 | template: |
| 11 | metadata: |
| 12 | labels: |
| 13 | app: appc-dbhost |
| 14 | spec: |
| 15 | containers: |
| 16 | - env: |
| 17 | - name: MYSQL_ROOT_PASSWORD |
| 18 | value: openECOMP1.0 |
| 19 | - name: MYSQL_ROOT_HOST |
| 20 | value: '%' |
kerenj | 6ca15a7 | 2017-08-23 12:05:23 +0000 | [diff] [blame] | 21 | image: {{ .Values.image.mysqlServer }} |
| 22 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 23 | name: appc-db-container |
| 24 | volumeMounts: |
| 25 | - mountPath: /var/lib/mysql |
| 26 | name: appc-data |
| 27 | ports: |
| 28 | - containerPort: 3306 |
| 29 | readinessProbe: |
| 30 | tcpSocket: |
| 31 | port: 3306 |
| 32 | initialDelaySeconds: 5 |
| 33 | periodSeconds: 10 |
| 34 | restartPolicy: Always |
| 35 | volumes: |
| 36 | - name: appc-data |
| 37 | hostPath: |
kerenj | 6ca15a7 | 2017-08-23 12:05:23 +0000 | [diff] [blame] | 38 | path: /dockerdata-nfs/onap/appc/data |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 39 | imagePullSecrets: |
| 40 | - name: onap-docker-registry-key |