blob: 30d0db3af53b1c4e1398f5f546cf51ca032e3cf4 [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:
7 replicas: 1
8 selector:
9 matchLabels:
10 app: mariadb
11 template:
12 metadata:
13 labels:
14 app: mariadb
15 spec:
16 hostname: mariadb
17 containers:
18 - command:
19 - /bin/bash
20 - -c
21 - exec bash /tmp/do-start.sh
Eric Aucdaafde2017-08-31 16:18:11 -040022 image: "{{ .Values.image.policyDb }}:{{ .Values.image.policyDbVersion }}"
kerenj3b697f62017-08-23 11:21:21 +000023 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040024 name: mariadb
25 ports:
26 - containerPort: 3306
BorislavG66a9a5c2017-09-06 15:12:46 +030027 volumeMounts:
28 - mountPath: /var/lib/mysql
29 name: policy-mariadb-data
Mandeep Khindad6ea9872017-06-24 11:49:37 -040030 readinessProbe:
31 tcpSocket:
32 port: 3306
33 initialDelaySeconds: 5
34 periodSeconds: 10
BorislavG66a9a5c2017-09-06 15:12:46 +030035 volumes:
36 - name: policy-mariadb-data
37 persistentVolumeClaim:
38 claimName: policy-db
Borislav Glozman5197e2e2017-07-24 10:45:28 +030039 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000040 - name: "{{ .Values.nsPrefix }}-docker-registry-key"