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 |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 5 | namespace: "{{ .Values.nsPrefix }}-sdnc" |
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 |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 37 | persistentVolumeClaim: |
| 38 | claimName: sdnc-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" |