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