blob: e42230f9949969addf2bd66073b9e6973bf90983 [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:
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
16 spec:
17 hostname: mariadb
18 containers:
Mandeep Khinda12610242017-09-14 11:37:33 +000019 - image: "{{ .Values.image.policyDb }}:{{ .Values.image.policyDbVersion }}"
kerenj3b697f62017-08-23 11:21:21 +000020 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040021 name: mariadb
22 ports:
23 - containerPort: 3306
BorislavG66a9a5c2017-09-06 15:12:46 +030024 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030025 - mountPath: /etc/localtime
26 name: localtime
27 readOnly: true
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
Borislav Glozman5197e2e2017-07-24 10:45:28 +030037 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000038 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
vaibhav_16decf785cf32018-02-15 10:15:44 +000039#{{ end }}