blob: 0566e504ebc7181cd892391d417018e6485e51fe [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableClampClampMariadb }}
Dusan Rozmanf776f3d2017-09-18 13:07:56 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: clamp-mariadb
6 namespace: "{{ .Values.nsPrefix }}-clamp"
7spec:
8 replicas: 1
9 selector:
10 matchLabels:
11 app: clamp-mariadb
12 template:
13 metadata:
14 labels:
15 app: clamp-mariadb
16 name: clamp-mariadb
17 spec:
18 hostname: clamp-mariadb
19 containers:
20 - args:
21 image: {{ .Values.image.mariadbImage }}:{{ .Values.image.mariadbVersion }}
22 imagePullPolicy: {{ .Values.pullPolicy }}
23 name: "clamp-mariadb"
24 env:
25 - name: MYSQL_ROOT_PASSWORD
26 value: {{ .Values.mysqlPassword }}
27 volumeMounts:
mayankg2703a2608a22018-01-17 11:30:14 +000028 - mountPath: /docker-entrypoint-initdb.d/load-sql-files-tests-automation.sh
Dusan Rozmanf776f3d2017-09-18 13:07:56 -040029 name: docker-entrypoint-initdb
mayankg2703a2608a22018-01-17 11:30:14 +000030 subPath: load-sql-files-tests-automation.sh
31 - mountPath: /docker-entrypoint-initdb.d/drop/
32 name: docker-entrypoint-clds-drop
33 - mountPath: /docker-entrypoint-initdb.d/bulkload/
34 name: docker-entrypoint-bulkload
35 - mountPath: /etc/mysql/conf.d/conf1/
Dusan Rozmanf776f3d2017-09-18 13:07:56 -040036 name: clamp-mariadb-conf
37 - mountPath: /var/lib/mysql
38 name: clamp-mariadb-data
39 readinessProbe:
40 tcpSocket:
41 port: 3306
42 initialDelaySeconds: 5
43 periodSeconds: 10
44 volumes:
45 - name: docker-entrypoint-initdb
mayankg2703a2608a22018-01-17 11:30:14 +000046 configMap:
47 name: clamp-entrypoint-initdb-configmap
48 - name: docker-entrypoint-clds-drop
49 configMap:
50 name: clamp-entrypoint-drop-configmap
51 - name: docker-entrypoint-bulkload
52 configMap:
53 name: clamp-entrypoint-bulkload-configmap
Dusan Rozmanf776f3d2017-09-18 13:07:56 -040054 - name: clamp-mariadb-conf
mayankg2703a2608a22018-01-17 11:30:14 +000055 configMap:
56 name: clamp-mariadb-conf-configmap
Dusan Rozmanf776f3d2017-09-18 13:07:56 -040057 - name: clamp-mariadb-data
58 persistentVolumeClaim:
59 claimName: clamp-db
60 imagePullSecrets:
61 - name: {{ .Values.nsPrefix }}-docker-registry-key
mayankg2703a2608a22018-01-17 11:30:14 +000062#{{ end }}