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