Skip to content

Commit

Permalink
Merge pull request #97 from openstad/feat/configure-api-db-pool-size
Browse files Browse the repository at this point in the history
feat(api): add `MAX_POOL_SIZE` env variable to configure maxPoolSize
  • Loading branch information
Badmuts authored Feb 6, 2023
2 parents bc3816f + 6780abd commit 8c6ffc3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion k8s/openstad/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: openstad
version: 1.0.4
version: 1.0.5
appVersion: "1.0"
description: This chart deploys the OpenStad Apostrophe project with optional databases.
icon: https://openstad.org/uploads/attachments/ckf3z5imd3w4pnl3w91not6qs-favicon-2x.svg
5 changes: 5 additions & 0 deletions k8s/openstad/templates/api/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ spec:
secretKeyRef:
key: hostname
name: openstad-db-credentials
- name: MAX_POOL_SIZE
valueFrom:
secretKeyRef:
key: maxPoolSize
name: openstad-db-credentials
- name: MYSQL_CA_CERT
valueFrom:
secretKeyRef:
Expand Down
2 changes: 2 additions & 0 deletions k8s/openstad/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,8 @@ secrets:
dbName:
hostname:
hostport:
# Max connections used in connection pool
maxPoolSize: 5

# If you want to force an SSL connection to MySQL, provide a CA cert here
# This should be the content of the CA cert, including `-----BEGIN CERTIFICATE-----`
Expand Down

0 comments on commit 8c6ffc3

Please sign in to comment.