mirror of
https://github.com/clearlinux/dockerfiles.git
synced 2026-06-16 02:45:47 +00:00
Update "Mariadb deploy with k8s"
This commit is contained in:
@@ -4,38 +4,39 @@ metadata:
|
||||
name: mysql-config
|
||||
data:
|
||||
my.cnf: |
|
||||
[mysqld]
|
||||
[galera]
|
||||
bind-address=0.0.0.0
|
||||
|
||||
[mysqld]
|
||||
skip-log-bin
|
||||
ssl=0
|
||||
|
||||
table_open_cache = 200000
|
||||
table_open_cache_instances=64
|
||||
back_log=3500
|
||||
max_connections=4000
|
||||
#back_log=3500
|
||||
#max_connections=4000
|
||||
|
||||
innodb_file_per_table
|
||||
#innodb_file_per_table
|
||||
|
||||
innodb_log_file_size=10G
|
||||
innodb_log_files_in_group=2
|
||||
innodb_log_buffer_size=64M
|
||||
#innodb_log_file_size=10G
|
||||
#innodb_log_files_in_group=2
|
||||
#innodb_log_buffer_size=64M
|
||||
|
||||
innodb_open_files=4000
|
||||
#innodb_open_files=4000
|
||||
|
||||
innodb_buffer_pool_size= 100G
|
||||
innodb_buffer_pool_instances=8
|
||||
#innodb_buffer_pool_size= 100G
|
||||
#innodb_buffer_pool_instances=8
|
||||
|
||||
innodb_flush_log_at_trx_commit = 1
|
||||
innodb_doublewrite=1
|
||||
innodb_flush_method = O_DIRECT
|
||||
innodb_file_per_table = 1
|
||||
innodb_io_capacity=2000
|
||||
innodb_io_capacity_max=4000
|
||||
innodb_flush_neighbors = 0
|
||||
innodb_use_native_aio=1
|
||||
#innodb_flush_log_at_trx_commit = 1
|
||||
#innodb_doublewrite=1
|
||||
#innodb_flush_method = O_DIRECT
|
||||
#innodb_file_per_table = 1
|
||||
#innodb_io_capacity=2000
|
||||
#innodb_io_capacity_max=4000
|
||||
#innodb_flush_neighbors = 0
|
||||
#innodb_use_native_aio=1
|
||||
|
||||
join_buffer_size=256K
|
||||
sort_buffer_size=256K
|
||||
#join_buffer_size=256K
|
||||
#sort_buffer_size=256K
|
||||
|
||||
---
|
||||
apiVersion: apps/v1beta1
|
||||
@@ -63,10 +64,11 @@ spec:
|
||||
ports:
|
||||
- containerPort: 3306
|
||||
name: db-port
|
||||
args: ["--bind-address=0.0.0.0"]
|
||||
imagePullPolicy: Always
|
||||
#args: ["--bind-address=0.0.0.0"]
|
||||
volumeMounts:
|
||||
- name: config-volume
|
||||
mountPath: /usr/share/defaults/mariadb
|
||||
mountPath: /usr/share/defaults/mariadb/my.cnf.d
|
||||
env:
|
||||
- name: MYSQL_ROOT_PASSWORD
|
||||
valueFrom:
|
||||
|
||||
@@ -19,7 +19,6 @@ spec:
|
||||
ports:
|
||||
- containerPort: 3306
|
||||
name: db-port
|
||||
args: ["--bind-address=0.0.0.0"]
|
||||
env:
|
||||
- name: MYSQL_ROOT_PASSWORD
|
||||
valueFrom:
|
||||
@@ -49,5 +48,4 @@ spec:
|
||||
targetPort: 3306
|
||||
nodePort: 30001
|
||||
selector:
|
||||
app: mariadb
|
||||
|
||||
app: mariadb
|
||||
Reference in New Issue
Block a user