chore: add nocodb and pgcat k8s manifests
This commit is contained in:
66
pgcat/configmap.yaml
Normal file
66
pgcat/configmap.yaml
Normal file
@@ -0,0 +1,66 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: pgcat-config
|
||||
data:
|
||||
pgcat.toml: |
|
||||
[general]
|
||||
host = "0.0.0.0"
|
||||
port = 6432
|
||||
connect_timeout = 5000
|
||||
idle_timeout = 30000
|
||||
server_lifetime = 86400000
|
||||
idle_client_in_transaction_timeout = 0
|
||||
healthcheck_timeout = 1000
|
||||
healthcheck_delay = 30000
|
||||
shutdown_timeout = 60000
|
||||
ban_time = 60
|
||||
log_client_connections = false
|
||||
log_client_disconnections = false
|
||||
autoreload = 15000
|
||||
worker_threads = 2
|
||||
admin_username = "pgcat"
|
||||
admin_password = "pgcat"
|
||||
|
||||
[pools.nocodb]
|
||||
pool_mode = "transaction"
|
||||
default_role = "primary"
|
||||
query_parser_enabled = false
|
||||
query_parser_read_write_splitting = false
|
||||
primary_reads_enabled = true
|
||||
load_balancing_mode = "random"
|
||||
|
||||
[pools.nocodb.users.0]
|
||||
username = "nocodb"
|
||||
password = "nocodb"
|
||||
pool_size = 20
|
||||
min_pool_size = 5
|
||||
server_lifetime = 86400000
|
||||
|
||||
[pools.nocodb.shards.0]
|
||||
database = "nocodb"
|
||||
servers = [
|
||||
["10.253.102.35", 5432, "primary"]
|
||||
]
|
||||
|
||||
[pools.nocodb_ro]
|
||||
pool_mode = "transaction"
|
||||
default_role = "replica"
|
||||
query_parser_enabled = false
|
||||
query_parser_read_write_splitting = false
|
||||
primary_reads_enabled = false
|
||||
load_balancing_mode = "random"
|
||||
|
||||
[pools.nocodb_ro.users.0]
|
||||
username = "nocodb"
|
||||
password = "nocodb"
|
||||
pool_size = 20
|
||||
min_pool_size = 5
|
||||
server_lifetime = 86400000
|
||||
|
||||
[pools.nocodb_ro.shards.0]
|
||||
database = "nocodb"
|
||||
servers = [
|
||||
["10.253.101.173", 5432, "replica"],
|
||||
["10.253.103.116", 5432, "replica"]
|
||||
]
|
||||
Reference in New Issue
Block a user