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: |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 7 | selector: |
| 8 | matchLabels: |
| 9 | app: mariadb |
| 10 | template: |
| 11 | metadata: |
| 12 | labels: |
| 13 | app: mariadb |
| 14 | spec: |
| 15 | hostname: mariadb |
| 16 | containers: |
Mandeep Khinda | 1261024 | 2017-09-14 11:37:33 +0000 | [diff] [blame] | 17 | - image: "{{ .Values.image.policyDb }}:{{ .Values.image.policyDbVersion }}" |
kerenj | 3b697f6 | 2017-08-23 11:21:21 +0000 | [diff] [blame] | 18 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 19 | name: mariadb |
| 20 | ports: |
| 21 | - containerPort: 3306 |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 22 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 23 | - mountPath: /etc/localtime |
| 24 | name: localtime |
| 25 | readOnly: true |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 26 | - mountPath: /var/lib/mysql |
| 27 | name: policy-mariadb-data |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 28 | readinessProbe: |
| 29 | tcpSocket: |
| 30 | port: 3306 |
| 31 | initialDelaySeconds: 5 |
| 32 | periodSeconds: 10 |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 33 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 34 | - name: localtime |
| 35 | hostPath: |
| 36 | path: /etc/localtime |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 37 | - name: policy-mariadb-data |
| 38 | persistentVolumeClaim: |
| 39 | claimName: policy-db |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 40 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 41 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |