This repository was archived by the owner on May 14, 2025. It is now read-only.
File tree 2 files changed +29
-1
lines changed
2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : ConfigMap
3
+ metadata :
4
+ name : mariadb-configmap
5
+ data :
6
+ primary.sql : |
7
+ CREATE DATABASE IF NOT EXISTS dataflow;
8
+ CREATE DATABASE IF NOT EXISTS skipper;
9
+ ---
1
10
apiVersion : apps/v1
2
11
kind : Deployment
3
12
metadata :
@@ -35,12 +44,17 @@ spec:
35
44
memory : 1Gi
36
45
volumeMounts :
37
46
- name : data
38
- mountPath : /var/lib/mariadb
47
+ mountPath : /var/lib/mysql
48
+ - name : initdb
49
+ mountPath : /docker-entrypoint-initdb.d
39
50
args :
40
51
- " --ignore-db-dir=lost+found"
41
52
- " --character-set-server=utf8mb4"
42
53
- " --collation-server=utf8mb4_unicode_ci"
43
54
volumes :
55
+ - name : initdb
56
+ configMap :
57
+ name : mariadb-configmap
44
58
- name : data
45
59
persistentVolumeClaim :
46
60
claimName : mariadb
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : ConfigMap
3
+ metadata :
4
+ name : mysql-configmap
5
+ data :
6
+ primary.sql : |
7
+ CREATE DATABASE IF NOT EXISTS dataflow;
8
+ CREATE DATABASE IF NOT EXISTS skipper;
9
+ ---
1
10
apiVersion : apps/v1
2
11
kind : Deployment
3
12
metadata :
57
66
volumeMounts :
58
67
- name : data
59
68
mountPath : /var/lib/mysql57
69
+ - name : initdb
70
+ mountPath : /docker-entrypoint-initdb.d
60
71
volumes :
61
72
- name : data
62
73
persistentVolumeClaim :
63
74
claimName : mysql57
75
+ - name : initdb
76
+ configMap :
77
+ name : mysql-configmap
You can’t perform that action at this time.
0 commit comments