diff --git a/seichi-onp-k8s/manifests/seichi-kubernetes/app-templates/seichi-debug-minecraft-on-seichiassist-pr/templates/mariadb/configmap.yaml b/seichi-onp-k8s/manifests/seichi-kubernetes/app-templates/seichi-debug-minecraft-on-seichiassist-pr/templates/mariadb/configmap.yaml new file mode 100644 index 000000000..1463e95ff --- /dev/null +++ b/seichi-onp-k8s/manifests/seichi-kubernetes/app-templates/seichi-debug-minecraft-on-seichiassist-pr/templates/mariadb/configmap.yaml @@ -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 diff --git a/seichi-onp-k8s/manifests/seichi-kubernetes/app-templates/seichi-debug-minecraft-on-seichiassist-pr/templates/mariadb/mariadb.yaml b/seichi-onp-k8s/manifests/seichi-kubernetes/app-templates/seichi-debug-minecraft-on-seichiassist-pr/templates/mariadb/mariadb.yaml index 144e1ba0c..80b21e6c8 100644 --- a/seichi-onp-k8s/manifests/seichi-kubernetes/app-templates/seichi-debug-minecraft-on-seichiassist-pr/templates/mariadb/mariadb.yaml +++ b/seichi-onp-k8s/manifests/seichi-kubernetes/app-templates/seichi-debug-minecraft-on-seichiassist-pr/templates/mariadb/mariadb.yaml @@ -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: @@ -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