blob: e3c93d7fe616f7d5c6e0eab8b4bb178ea312bee0 [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: mariadb
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00005 namespace: "{{ .Values.nsPrefix }}-policy"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04006spec:
Mandeep Khindad6ea9872017-06-24 11:49:37 -04007 selector:
8 matchLabels:
9 app: mariadb
10 template:
11 metadata:
12 labels:
13 app: mariadb
14 spec:
15 hostname: mariadb
16 containers:
Mandeep Khinda12610242017-09-14 11:37:33 +000017 - image: "{{ .Values.image.policyDb }}:{{ .Values.image.policyDbVersion }}"
kerenj3b697f62017-08-23 11:21:21 +000018 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040019 name: mariadb
20 ports:
21 - containerPort: 3306
BorislavG66a9a5c2017-09-06 15:12:46 +030022 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030023 - mountPath: /etc/localtime
24 name: localtime
25 readOnly: true
BorislavG66a9a5c2017-09-06 15:12:46 +030026 - mountPath: /var/lib/mysql
27 name: policy-mariadb-data
Mandeep Khindad6ea9872017-06-24 11:49:37 -040028 readinessProbe:
29 tcpSocket:
30 port: 3306
31 initialDelaySeconds: 5
32 periodSeconds: 10
BorislavG66a9a5c2017-09-06 15:12:46 +030033 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030034 - name: localtime
35 hostPath:
36 path: /etc/localtime
BorislavG66a9a5c2017-09-06 15:12:46 +030037 - name: policy-mariadb-data
38 persistentVolumeClaim:
39 claimName: policy-db
Borislav Glozman5197e2e2017-07-24 10:45:28 +030040 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000041 - name: "{{ .Values.nsPrefix }}-docker-registry-key"