Skip to content

Commit

Permalink
Merge pull request #1527 from GiganticMinecraft/maraidb-sts
Browse files Browse the repository at this point in the history
add config
  • Loading branch information
rito528 authored Dec 17, 2023
2 parents 4e34c8a + 66d33d9 commit 15b78a2
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 15b78a2

Please sign in to comment.