blob: 820d7e223954132bebbc731098c30e888c749a6b [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableMsoMariadb }}
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 }}-mso"
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 name: mariadb
16 spec:
17 hostname: mariadb
18 containers:
19 - args:
kerenj74d723a2017-08-22 15:27:04 +000020 image: {{ .Values.image.mariadb }}
21 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040022 name: "mariadb"
23 env:
24 - name: MYSQL_ROOT_PASSWORD
25 value: password
Mandeep Khindad6ea9872017-06-24 11:49:37 -040026 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030027 - mountPath: /etc/localtime
28 name: localtime
29 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040030 - mountPath: /etc/mysql/conf.d
31 name: mso-mariadb-conf
32 - mountPath: /docker-entrypoint-initdb.d
33 name: mso-mariadb-docker-entrypoint-initdb
BorislavG66a9a5c2017-09-06 15:12:46 +030034 - mountPath: /var/lib/mysql
35 name: mso-mariadb-data
Mandeep Khindad6ea9872017-06-24 11:49:37 -040036 ports:
37 - containerPort: 3306
38 name: mariadb
39 readinessProbe:
40 tcpSocket:
41 port: 3306
42 initialDelaySeconds: 5
43 periodSeconds: 10
44 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030045 - name: localtime
46 hostPath:
47 path: /etc/localtime
Mandeep Khindad6ea9872017-06-24 11:49:37 -040048 - name: mso-mariadb-conf
49 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000050 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/mso/mariadb/conf.d
Mandeep Khindad6ea9872017-06-24 11:49:37 -040051 - name: mso-mariadb-docker-entrypoint-initdb
52 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000053 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/mso/mariadb/docker-entrypoint-initdb.d
BorislavG66a9a5c2017-09-06 15:12:46 +030054 - name: mso-mariadb-data
55 persistentVolumeClaim:
56 claimName: mso-db
Borislav Glozman5197e2e2017-07-24 10:45:28 +030057 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000058 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
yurynfcef9942017-10-26 17:10:50 +030059#{{ end }}