Fix asdc/sdngc interface robot
[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         - mountPath: /var/lib/mysql
28           name: policy-mariadb-data
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       - name: policy-mariadb-data
39         persistentVolumeClaim:
40           claimName: policy-db
41       imagePullSecrets:
42       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
43 #{{ end }}