Replica Scaling of Policy Container
[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   replicas: {{ .Values.mariadbReplicas }}
9   selector:
10     matchLabels:
11       app: mariadb
12   template:
13     metadata:
14       labels:
15         app: mariadb
16     spec:
17       hostname: mariadb
18       containers:
19       - image: "{{ .Values.image.policyDb }}:{{ .Values.image.policyDbVersion }}"
20         imagePullPolicy: {{ .Values.pullPolicy }}
21         name: mariadb
22         ports:
23         - containerPort: 3306
24         volumeMounts:
25         - mountPath: /etc/localtime
26           name: localtime
27           readOnly: true
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       imagePullSecrets:
38       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
39 #{{ end }}