Skip to content

Commit

Permalink
Merge pull request #36 from nfdi4health/feat/configure-resource-volume
Browse files Browse the repository at this point in the history
feat(dataverse): Configure solr and postgres via Values (remove hardcoded values)
  • Loading branch information
vera authored Jan 9, 2025
2 parents e012001 + 89af9b9 commit 68a3525
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 5 deletions.
2 changes: 1 addition & 1 deletion k8s/dataverse/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.9.0
version: 0.9.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
8 changes: 5 additions & 3 deletions k8s/dataverse/templates/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@ metadata:
app.kubernetes.io/component: postgres
app.kubernetes.io/part-of: dataverse
spec:
enableLogicalBackup: true
enableLogicalBackup: {{ .Values.postgres.logical_backup }}
teamId: {{ .Release.Name }}
volume:
size: 32Gi
numberOfInstances: 2
size: {{ .Values.postgres.volume_size }}
numberOfInstances: {{ int .Values.postgres.number_instances }}
{{ if gt (int .Values.postgres.number_instances) 1 }}
enableConnectionPooler: true
connectionPooler:
mode: session
{{ end }}
users:
dataverse: # database owner
- superuser
Expand Down
6 changes: 5 additions & 1 deletion k8s/dataverse/templates/solr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
- ReadWriteOnce
resources:
requests:
storage: 2Gi
storage: {{ .Values.solr.volume_size }}
---
apiVersion: v1
kind: PersistentVolumeClaim
Expand Down Expand Up @@ -106,6 +106,10 @@ spec:
value: "0.0.0.0"
- name: SOLR_OPTS
value: "-Dsolr.jetty.request.header.size=65535"
{{ if .Values.solr.resources }}
resources:
{{ toYaml .Values.solr.resources | indent 10 }}
{{ end }}
ports:
- containerPort: 8983
volumeMounts:
Expand Down
11 changes: 11 additions & 0 deletions k8s/dataverse/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ dataverse:
shoulder:
base_url:
separator:
postgres:
volume_size: "32Gi"
number_instances: 2
logical_backup: true
solr:
volume_size: "2Gi"
resources:
limits:
memory: "4Gi"
requests:
memory: "1Gi"
images:
backend: ghcr.io/nfdi4health/csh-ui/dataverse:6.5
configbaker: ghcr.io/nfdi4health/csh-ui/dataverse-baker:6.5

0 comments on commit 68a3525

Please sign in to comment.