Skip to content

Commit

Permalink
chore: Add resource limits for postgres configuration (#81)
Browse files Browse the repository at this point in the history
Signed-off-by: Lars Geyer-Blaumeiser <[email protected]>
  • Loading branch information
lgblaumeiser authored Jul 30, 2024
1 parent 3297d1c commit f486f7f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions charts/bdrs-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,15 @@ helm install my-release tractusx-edc/bdrs-server --version 0.5.2 \
| postgresql.auth.username | string | `"bdrs"` | |
| postgresql.jdbcUrl | string | `"jdbc:postgresql://{{ .Release.Name }}-postgresql:5432/bdrs"` | |
| postgresql.primary.persistence.enabled | bool | `false` | |
| postgresql.primary.resources.limits.cpu | int | `1` | |
| postgresql.primary.resources.limits.memory | string | `"1Gi"` | |
| postgresql.primary.resources.requests.cpu | string | `"250m"` | |
| postgresql.primary.resources.requests.memory | string | `"256Mi"` | |
| postgresql.readReplicas.persistence.enabled | bool | `false` | |
| postgresql.readReplicas.resources.limits.cpu | string | `"500Mi"` | |
| postgresql.readReplicas.resources.limits.memory | string | `"1Gi"` | |
| postgresql.readReplicas.resources.requests.cpu | string | `"250m"` | |
| postgresql.readReplicas.resources.requests.memory | string | `"256Mi"` | |
| server.affinity | object | `{}` | |
| server.autoscaling.enabled | bool | `false` | Enables [horizontal pod autoscaling](https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/) |
| server.autoscaling.maxReplicas | int | `100` | Maximum replicas if resource consumption exceeds resource threshholds |
Expand Down
14 changes: 14 additions & 0 deletions charts/bdrs-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,23 @@ postgresql:
primary:
persistence:
enabled: false
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 250m
memory: 256Mi
readReplicas:
persistence:
enabled: false
resources:
limits:
cpu: 500Mi
memory: 1Gi
requests:
cpu: 250m
memory: 256Mi
auth:
database: "bdrs"
username: "bdrs"
Expand Down

0 comments on commit f486f7f

Please sign in to comment.