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