Skip to content

Commit

Permalink
use tmpfs
Browse files Browse the repository at this point in the history
  • Loading branch information
outductor committed Dec 17, 2023
1 parent cd4f420 commit 6f5007f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ data:
innodb_log_file_size = 256M
innodb_flush_log_at_trx_commit = 2
innodb_write_io_threads = 8
max_allowed_packet = 512M
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ spec:
imagePullPolicy: IfNotPresent
resources:
requests:
cpu: 2
memory: 2Gi
cpu: 4
memory: 7Gi
env:
- name: MYSQL_TCP_PORT
value: "3306"
Expand Down Expand Up @@ -68,6 +68,8 @@ spec:
name: mariadb
protocol: TCP
volumeMounts:
- mountPath: /var/lib/mysql
name: storage
- mountPath: /docker-entrypoint-initdb.d
name: sqldump-volume
- name: mariadb-config
Expand All @@ -78,8 +80,8 @@ spec:
imagePullPolicy: IfNotPresent
resources:
requests:
cpu: 1
memory: 1Gi
cpu: 2
memory: 4Gi
env:
- name: DB_PASSWORD
valueFrom:
Expand All @@ -96,6 +98,10 @@ spec:
name: sqldump-volume
restartPolicy: Always
volumes:
- name: storage
emptyDir:
medium: Memory
sizeLimit: 5Gi
- name: sqldump-volume
- name: mariadb-config
configMap:
Expand Down

0 comments on commit 6f5007f

Please sign in to comment.