blob: c921e8c89072b107c92727e14fa76744881f0b2f [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disablePolicyMariadb }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: mariadb
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00006 namespace: "{{ .Values.nsPrefix }}-policy"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04007spec:
Mandeep Khindad6ea9872017-06-24 11:49:37 -04008 selector:
9 matchLabels:
10 app: mariadb
11 template:
12 metadata:
13 labels:
14 app: mariadb
15 spec:
16 hostname: mariadb
17 containers:
Mandeep Khinda12610242017-09-14 11:37:33 +000018 - image: "{{ .Values.image.policyDb }}:{{ .Values.image.policyDbVersion }}"
kerenj3b697f62017-08-23 11:21:21 +000019 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040020 name: mariadb
21 ports:
22 - containerPort: 3306
BorislavG66a9a5c2017-09-06 15:12:46 +030023 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030024 - mountPath: /etc/localtime
25 name: localtime
26 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040027 readinessProbe:
28 tcpSocket:
29 port: 3306
30 initialDelaySeconds: 5
31 periodSeconds: 10
BorislavG66a9a5c2017-09-06 15:12:46 +030032 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030033 - name: localtime
34 hostPath:
35 path: /etc/localtime
Borislav Glozman5197e2e2017-07-24 10:45:28 +030036 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000037 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
yurynfcef9942017-10-26 17:10:50 +030038#{{ end }}