Skip to content

Commit

Permalink
add config
Browse files Browse the repository at this point in the history
  • Loading branch information
outductor committed Dec 17, 2023
1 parent 2d8e6d7 commit 66d33d9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: mariadb-config
data:
my.cnf: |
[mysqld]
innodb_buffer_pool_size = 2G
innodb_log_file_size = 512M
innodb_flush_log_at_trx_commit = 2
innodb_write_io_threads = 8
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,16 @@ spec:
name: storage
- mountPath: /docker-entrypoint-initdb.d
name: sqldump-volume
- name: mariadb-config
mountPath: /etc/mysql/conf.d
initContainers:
- name: init-0
image: mariadb:10.11.6
imagePullPolicy: IfNotPresent
resources:
requests:
cpu: 4000m
memory: 4096Mi
cpu: 4
memory: 6Gi
env:
- name: DB_PASSWORD
valueFrom:
Expand All @@ -101,6 +103,12 @@ spec:
- name: storage
emptyDir:
medium: Memory
sizeLimit: 4Gi
sizeLimit: 6Gi
- name: sqldump-volume
emptyDir: {}
- name: mariadb-config
configMap:
name: mariadb-config
items:
- key: my.cnf
path: my.cnf

0 comments on commit 66d33d9

Please sign in to comment.