blob: 9ac17daa888e7bbe619775bccb57613e4d925392 [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:
BorislavG8bfc6cf2018-02-27 15:04:26 +00005 name: policy-mariadb
6 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04007spec:
vaibhav_16decf785cf32018-02-15 10:15:44 +00008 replicas: {{ .Values.mariadbReplicas }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04009 selector:
10 matchLabels:
11 app: mariadb
12 template:
13 metadata:
14 labels:
15 app: mariadb
BorislavG8bfc6cf2018-02-27 15:04:26 +000016 name: policy-mariadb
Mandeep Khindad6ea9872017-06-24 11:49:37 -040017 spec:
18 hostname: mariadb
19 containers:
Mandeep Khinda12610242017-09-14 11:37:33 +000020 - image: "{{ .Values.image.policyDb }}:{{ .Values.image.policyDbVersion }}"
kerenj3b697f62017-08-23 11:21:21 +000021 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040022 name: mariadb
23 ports:
24 - containerPort: 3306
BorislavG66a9a5c2017-09-06 15:12:46 +030025 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030026 - mountPath: /etc/localtime
27 name: localtime
28 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040029 readinessProbe:
30 tcpSocket:
31 port: 3306
32 initialDelaySeconds: 5
33 periodSeconds: 10
BorislavG66a9a5c2017-09-06 15:12:46 +030034 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030035 - name: localtime
36 hostPath:
37 path: /etc/localtime
Borislav Glozman5197e2e2017-07-24 10:45:28 +030038 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000039 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
vaibhav_16decf785cf32018-02-15 10:15:44 +000040#{{ end }}