Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: mariadb |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 5 | namespace: "{{ .Values.nsPrefix }}-policy" |
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 |
Eric Au | cdaafde | 2017-08-31 16:18:11 -0400 | [diff] [blame] | 22 | image: "{{ .Values.image.policyDb }}:{{ .Values.image.policyDbVersion }}" |
kerenj | 3b697f6 | 2017-08-23 11:21:21 +0000 | [diff] [blame] | 23 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 24 | name: mariadb |
| 25 | ports: |
| 26 | - containerPort: 3306 |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 27 | volumeMounts: |
| 28 | - mountPath: /var/lib/mysql |
| 29 | name: policy-mariadb-data |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 30 | readinessProbe: |
| 31 | tcpSocket: |
| 32 | port: 3306 |
| 33 | initialDelaySeconds: 5 |
| 34 | periodSeconds: 10 |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 35 | volumes: |
| 36 | - name: policy-mariadb-data |
| 37 | persistentVolumeClaim: |
| 38 | claimName: policy-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" |