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 |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 5 | namespace: "{{ .Values.nsPrefix }}-appc" |
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 |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 37 | persistentVolumeClaim: |
| 38 | claimName: appc-db |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 39 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 40 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |