Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: mariadb |
kerenj | 3b697f6 | 2017-08-23 11:21:21 +0000 | [diff] [blame^] | 5 | namespace: {{ .Values.NS }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 6 | spec: |
| 7 | replicas: 1 |
| 8 | selector: |
| 9 | matchLabels: |
| 10 | app: mariadb |
| 11 | template: |
| 12 | metadata: |
| 13 | labels: |
| 14 | app: mariadb |
| 15 | spec: |
| 16 | hostname: mariadb |
| 17 | containers: |
| 18 | - command: |
| 19 | - /bin/bash |
| 20 | - -c |
| 21 | - exec bash /tmp/do-start.sh |
kerenj | 3b697f6 | 2017-08-23 11:21:21 +0000 | [diff] [blame^] | 22 | image: {{ .Values.image.policyDb }} |
| 23 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 24 | name: mariadb |
| 25 | ports: |
| 26 | - containerPort: 3306 |
| 27 | readinessProbe: |
| 28 | tcpSocket: |
| 29 | port: 3306 |
| 30 | initialDelaySeconds: 5 |
| 31 | periodSeconds: 10 |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 32 | imagePullSecrets: |
| 33 | - name: onap-docker-registry-key |