Merge "Containers time zone sync"
[oom.git] / kubernetes / policy / templates / dep-maria.yaml
1 apiVersion: extensions/v1beta1
2 kind: Deployment
3 metadata:
4   name: mariadb
5   namespace: "{{ .Values.nsPrefix }}-policy"
6 spec:
7   selector:
8     matchLabels:
9       app: mariadb
10   template:
11     metadata:
12       labels:
13         app: mariadb
14     spec:
15       hostname: mariadb
16       containers:
17       - image: "{{ .Values.image.policyDb }}:{{ .Values.image.policyDbVersion }}"
18         imagePullPolicy: {{ .Values.pullPolicy }}
19         name: mariadb
20         ports:
21         - containerPort: 3306
22         volumeMounts:
23         - mountPath: /etc/localtime
24           name: localtime
25           readOnly: true
26         - mountPath: /var/lib/mysql
27           name: policy-mariadb-data
28         readinessProbe:
29           tcpSocket:
30             port: 3306
31           initialDelaySeconds: 5
32           periodSeconds: 10
33       volumes:
34       - name: localtime
35         hostPath:
36           path: /etc/localtime
37       - name: policy-mariadb-data
38         persistentVolumeClaim:
39           claimName: policy-db
40       imagePullSecrets:
41       - name: "{{ .Values.nsPrefix }}-docker-registry-key"