x
This commit is contained in:
parent
9b6c69faac
commit
0d1a44d319
1 changed files with 21 additions and 0 deletions
|
@ -11,3 +11,24 @@ spec:
|
||||||
|
|
||||||
storage:
|
storage:
|
||||||
size: 5Gi
|
size: 5Gi
|
||||||
|
|
||||||
|
podTemplate:
|
||||||
|
spec:
|
||||||
|
volumes:
|
||||||
|
- name: init-sql-volume
|
||||||
|
configMap:
|
||||||
|
name: init-sql
|
||||||
|
initContainers:
|
||||||
|
- name: copy-init-sql
|
||||||
|
image: busybox
|
||||||
|
command: ["sh", "-c", "cp /config/init.sql /mnt/initdb/init.sql"]
|
||||||
|
volumeMounts:
|
||||||
|
- name: init-sql-volume
|
||||||
|
mountPath: /config
|
||||||
|
- name: data
|
||||||
|
mountPath: /mnt/initdb
|
||||||
|
containers:
|
||||||
|
- name: mariadb
|
||||||
|
volumeMounts:
|
||||||
|
- name: data
|
||||||
|
mountPath: /docker-entrypoint-initdb.d
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue