Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CASMPET-6720 Add pooler resource customization #61

Merged
merged 1 commit into from
Aug 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion kubernetes/cray-service/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#
apiVersion: v2
name: cray-service
version: 8.2.3
version: 8.2.4
description: This chart should never be installed directly, base your specific Cray service charts off this one
home: https://github.com/Cray-HPE/base-charts
maintainers:
Expand Down
7 changes: 7 additions & 0 deletions kubernetes/cray-service/templates/postgresql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ spec:
numberOfInstances: {{ .Values.sqlCluster.connectionPooler.instanceCount }}
mode: "{{ .Values.sqlCluster.connectionPooler.mode }}"
dockerImage: "{{ .Values.sqlCluster.connectionPooler.image }}"
resources:
requests:
cpu: "{{ .Values.sqlCluster.connectionPooler.resources.requests.cpu }}"
memory: "{{ .Values.sqlCluster.connectionPooler.resources.requests.memory }}"
limits:
cpu: "{{ .Values.sqlCluster.connectionPooler.resources.limits.cpu }}"
memory: "{{ .Values.sqlCluster.connectionPooler.resources.limits.memory }}"
{{- end }}

postgresql:
Expand Down
7 changes: 7 additions & 0 deletions kubernetes/cray-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,13 @@ sqlCluster:
instanceCount: 3
mode: "session"
image: artifactory.algol60.net/csm-docker/stable/registry.opensource.zalan.do/acid/pgbouncer:master-21
resources:
requests:
cpu: 500m
memory: 300Mi
limits:
cpu: 1
memory: 300Mi
#
# Consumers of this chart can override postgres cluster pod resource limits as follows:
#
Expand Down