This commit is contained in:
Igor Nikulin 2025-06-05 16:24:09 +02:00
parent 970e30f2e4
commit 18ea8a631d

View File

@ -316,7 +316,7 @@ postgresql:
## @param postgresql.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if postgresql.resources is set (postgresql.resources is recommended for production). ## @param postgresql.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if postgresql.resources is set (postgresql.resources is recommended for production).
## More information: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15 ## More information: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15
## ##
resourcesPreset: "micro" resourcesPreset: "small"
## @param postgresql.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads) ## @param postgresql.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
## Example: ## Example:
## resources: ## resources:
@ -904,7 +904,7 @@ witness:
## @param witness.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if witness.resources is set (witness.resources is recommended for production). ## @param witness.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if witness.resources is set (witness.resources is recommended for production).
## More information: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15 ## More information: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15
## ##
resourcesPreset: "micro" resourcesPreset: "small"
## @param witness.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads) ## @param witness.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
## Example: ## Example:
## resources: ## resources:
@ -1238,12 +1238,6 @@ pgpool:
extraEnvVarsSecret: "" extraEnvVarsSecret: ""
## @param pgpool.extraVolumes Extra volumes to add to the deployment ## @param pgpool.extraVolumes Extra volumes to add to the deployment
## ##
extraVolumes: []
## @param pgpool.extraVolumeMounts Extra volume mounts to add to the container. Normally used with `extraVolumes`
##
extraVolumeMounts: []
## @param pgpool.initContainers Extra init containers to add to the deployment
##
initContainers: [] initContainers: []
## @param pgpool.sidecars Extra sidecar containers to add to the deployment ## @param pgpool.sidecars Extra sidecar containers to add to the deployment
## ##
@ -1357,6 +1351,14 @@ pgpool:
drop: ["ALL"] drop: ["ALL"]
seccompProfile: seccompProfile:
type: "RuntimeDefault" type: "RuntimeDefault"
extraVolumes:
- name: pgpool-run
emptyDir: {}
extraVolumeMounts:
- name: pgpool-run
mountPath: /var/run/pgpool
## Pgpool containers' resource requests and limits ## Pgpool containers' resource requests and limits
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
## We usually recommend not to specify default resources and to leave this as a conscious ## We usually recommend not to specify default resources and to leave this as a conscious
@ -1366,7 +1368,7 @@ pgpool:
## @param pgpool.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if pgpool.resources is set (pgpool.resources is recommended for production). ## @param pgpool.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if pgpool.resources is set (pgpool.resources is recommended for production).
## More information: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15 ## More information: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15
## ##
resourcesPreset: "micro" resourcesPreset: "small"
## @param pgpool.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads) ## @param pgpool.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
## Example: ## Example:
## resources: ## resources:
@ -1389,12 +1391,12 @@ pgpool:
## ##
livenessProbe: livenessProbe:
enabled: true enabled: true
initialDelaySeconds: 30 initialDelaySeconds: 60
periodSeconds: 10 periodSeconds: 10
timeoutSeconds: 5 timeoutSeconds: 10
successThreshold: 1 successThreshold: 1
failureThreshold: 5 failureThreshold: 6
## Pgpool container's readiness probe ## Pgpool container's readiness probe
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
## @param pgpool.readinessProbe.enabled Enable readinessProbe ## @param pgpool.readinessProbe.enabled Enable readinessProbe
## @param pgpool.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe ## @param pgpool.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
@ -1405,12 +1407,12 @@ pgpool:
## ##
readinessProbe: readinessProbe:
enabled: true enabled: true
initialDelaySeconds: 5 initialDelaySeconds: 60
periodSeconds: 5 periodSeconds: 10
timeoutSeconds: 5 timeoutSeconds: 10
successThreshold: 1 successThreshold: 1
failureThreshold: 5 failureThreshold: 6
## Pgpool container's startup probe ## Pgpool container's startup probe
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
## @param pgpool.startupProbe.enabled Enable startupProbe ## @param pgpool.startupProbe.enabled Enable startupProbe
## @param pgpool.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe ## @param pgpool.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
@ -1420,13 +1422,13 @@ pgpool:
## @param pgpool.startupProbe.successThreshold Success threshold for startupProbe ## @param pgpool.startupProbe.successThreshold Success threshold for startupProbe
## ##
startupProbe: startupProbe:
enabled: false enabled: true
initialDelaySeconds: 5 initialDelaySeconds: 30
periodSeconds: 10 periodSeconds: 10
timeoutSeconds: 5 timeoutSeconds: 10
successThreshold: 1 successThreshold: 1
failureThreshold: 10 failureThreshold: 30
## Network Policies ## Network Policies
## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/ ## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
## ##
networkPolicy: networkPolicy:
@ -1517,7 +1519,7 @@ pgpool:
## @param pgpool.logConnections Log all client connections (PGPOOL_ENABLE_LOG_CONNECTIONS) ## @param pgpool.logConnections Log all client connections (PGPOOL_ENABLE_LOG_CONNECTIONS)
## ref: https://github.com/bitnami/containers/tree/main/bitnami/pgpool#configuration ## ref: https://github.com/bitnami/containers/tree/main/bitnami/pgpool#configuration
## ##
logConnections: false logConnections: true
## @param pgpool.logHostname Log the client hostname instead of IP address (PGPOOL_ENABLE_LOG_HOSTNAME) ## @param pgpool.logHostname Log the client hostname instead of IP address (PGPOOL_ENABLE_LOG_HOSTNAME)
## ref: https://github.com/bitnami/containers/tree/main/bitnami/pgpool#configuration ## ref: https://github.com/bitnami/containers/tree/main/bitnami/pgpool#configuration
## ##
@ -1525,7 +1527,7 @@ pgpool:
## @param pgpool.logPerNodeStatement Log every SQL statement for each DB node separately (PGPOOL_ENABLE_LOG_PER_NODE_STATEMENT) ## @param pgpool.logPerNodeStatement Log every SQL statement for each DB node separately (PGPOOL_ENABLE_LOG_PER_NODE_STATEMENT)
## ref: https://github.com/bitnami/containers/tree/main/bitnami/pgpool#configuration ## ref: https://github.com/bitnami/containers/tree/main/bitnami/pgpool#configuration
## ##
logPerNodeStatement: false logPerNodeStatement: true
## @param pgpool.logLinePrefix Format of the log entry lines (PGPOOL_LOG_LINE_PREFIX) ## @param pgpool.logLinePrefix Format of the log entry lines (PGPOOL_LOG_LINE_PREFIX)
## ref: https://github.com/bitnami/containers/tree/main/bitnami/pgpool#configuration ## ref: https://github.com/bitnami/containers/tree/main/bitnami/pgpool#configuration
## ref: https://www.pgpool.net/docs/latest/en/html/runtime-config-logging.html ## ref: https://www.pgpool.net/docs/latest/en/html/runtime-config-logging.html
@ -1539,34 +1541,34 @@ pgpool:
## connections limit to Pgpool-II from clients. Must be a positive integer. (PGPOOL_NUM_INIT_CHILDREN) ## connections limit to Pgpool-II from clients. Must be a positive integer. (PGPOOL_NUM_INIT_CHILDREN)
## ref: https://github.com/bitnami/containers/tree/main/bitnami/pgpool#configuration ## ref: https://github.com/bitnami/containers/tree/main/bitnami/pgpool#configuration
## ##
numInitChildren: "" numInitChildren: "200"
## @param pgpool.reservedConnections Number of reserved connections. When zero, excess connection block. When non-zero, excess connections are refused with an error message. ## @param pgpool.reservedConnections Number of reserved connections. When zero, excess connection block. When non-zero, excess connections are refused with an error message.
## When this parameter is set to 1 or greater, incoming connections from clients are not accepted with error message ## When this parameter is set to 1 or greater, incoming connections from clients are not accepted with error message
## "Sorry, too many clients already", rather than blocked if the number of current connections from clients is more than ## "Sorry, too many clients already", rather than blocked if the number of current connections from clients is more than
## (num_init_children - reserved_connections). ## (num_init_children - reserved_connections).
## ref: https://github.com/bitnami/containers/tree/main/bitnami/pgpool#configuration ## ref: https://github.com/bitnami/containers/tree/main/bitnami/pgpool#configuration
## ##
reservedConnections: 1 reservedConnections: 10
## @param pgpool.maxPool The maximum number of cached connections in each child process (PGPOOL_MAX_POOL) ## @param pgpool.maxPool The maximum number of cached connections in each child process (PGPOOL_MAX_POOL)
## ref: https://github.com/bitnami/containers/tree/main/bitnami/pgpool#configuration ## ref: https://github.com/bitnami/containers/tree/main/bitnami/pgpool#configuration
## ##
maxPool: "" maxPool: "4"
## @param pgpool.childMaxConnections The maximum number of client connections in each child process (PGPOOL_CHILD_MAX_CONNECTIONS) ## @param pgpool.childMaxConnections The maximum number of client connections in each child process (PGPOOL_CHILD_MAX_CONNECTIONS)
## ref: https://github.com/bitnami/containers/tree/main/bitnami/pgpool#configuration ## ref: https://github.com/bitnami/containers/tree/main/bitnami/pgpool#configuration
## ##
childMaxConnections: "" childMaxConnections: "1000"
## @param pgpool.childLifeTime The time in seconds to terminate a Pgpool-II child process if it remains idle (PGPOOL_CHILD_LIFE_TIME) ## @param pgpool.childLifeTime The time in seconds to terminate a Pgpool-II child process if it remains idle (PGPOOL_CHILD_LIFE_TIME)
## ref: https://github.com/bitnami/containers/tree/main/bitnami/pgpool#configuration ## ref: https://github.com/bitnami/containers/tree/main/bitnami/pgpool#configuration
## ##
childLifeTime: "" childLifeTime: "300"
## @param pgpool.clientIdleLimit The time in seconds to disconnect a client if it remains idle since the last query (PGPOOL_CLIENT_IDLE_LIMIT) ## @param pgpool.clientIdleLimit The time in seconds to disconnect a client if it remains idle since the last query (PGPOOL_CLIENT_IDLE_LIMIT)
## ref: https://github.com/bitnami/containers/tree/main/bitnami/pgpool#configuration ## ref: https://github.com/bitnami/containers/tree/main/bitnami/pgpool#configuration
## ##
clientIdleLimit: "" clientIdleLimit: "60"
## @param pgpool.connectionLifeTime The time in seconds to terminate the cached connections to the PostgreSQL backend (PGPOOL_CONNECTION_LIFE_TIME) ## @param pgpool.connectionLifeTime The time in seconds to terminate the cached connections to the PostgreSQL backend (PGPOOL_CONNECTION_LIFE_TIME)
## ref: https://github.com/bitnami/containers/tree/main/bitnami/pgpool#configuration ## ref: https://github.com/bitnami/containers/tree/main/bitnami/pgpool#configuration
## ##
connectionLifeTime: "" connectionLifeTime: "600"
## @param pgpool.useLoadBalancing Use Pgpool Load-Balancing ## @param pgpool.useLoadBalancing Use Pgpool Load-Balancing
## ##
useLoadBalancing: true useLoadBalancing: true
@ -1585,7 +1587,13 @@ pgpool:
## port = '5432' ## port = '5432'
## ... ## ...
## ##
configuration: "" configuration: |-
failover_on_backend_error = on
auto_failback = on
health_check_period = 10
health_check_timeout = 5
health_check_max_retries = 3
health_check_retry_delay = 5
## @param pgpool.configurationCM ConfigMap with Pgpool configuration ## @param pgpool.configurationCM ConfigMap with Pgpool configuration
## NOTE: This will override pgpool.configuration parameter ## NOTE: This will override pgpool.configuration parameter
## The file used must be named `pgpool.conf` ## The file used must be named `pgpool.conf`
@ -2020,7 +2028,7 @@ volumePermissions:
## @param volumePermissions.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if volumePermissions.resources is set (volumePermissions.resources is recommended for production). ## @param volumePermissions.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if volumePermissions.resources is set (volumePermissions.resources is recommended for production).
## More information: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15 ## More information: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15
## ##
resourcesPreset: "nano" resourcesPreset: "small"
## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads) ## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
## Example: ## Example:
## resources: ## resources: