Skip to content

Commit

Permalink
chore(postgres): Upgrade Postgres to version 15.3.0
Browse files Browse the repository at this point in the history
Refreshes #2894 and supercedes it.
  • Loading branch information
aledegano committed Oct 19, 2023
1 parent 875c61d commit a7b49dc
Show file tree
Hide file tree
Showing 9 changed files with 129 additions and 73 deletions.
14 changes: 13 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
.. _changelog:

0.42.0
------

Renku ``0.42.0`` is a release that exclusively changes internal components and has no effect on the end-user.
Upgrades the PostgreSQL Helm chart version that is shipped with the Renku Helm chart.

NOTE for administrators: make sure to check `helm-chart/values.yaml.changelog.md` for instructions on how to
upgrade to this version of Renku.
**Improvements**

- **Infrastructure**: (BREAKING CHANGE) Upgrade the version of PostgreSQL to 15.3.0. This requires modifying your current values file to work with the new PostgreSQL Helm chart, see (`the helm chart values changelog <https://github.com/SwissDataScienceCenter/renku/blob/master/helm-chart/values.yaml.changelog.md>`_) for instructions.

0.41.0
------
Expand Down Expand Up @@ -621,11 +632,12 @@ Individual components
- `renku-ui 3.10.0 <https://github.com/SwissDataScienceCenter/renku-ui/releases/tag/3.10.0>`_
- `renku-notebooks 1.17.0 <https://github.com/SwissDataScienceCenter/renku-notebooks/releases/tag/1.17.0>`_
- `amalthea 0.8.0 <https://github.com/SwissDataScienceCenter/amalthea/releases/tag/0.8.0>`_
=======

0.32.0
------

Renku ``0.32.0`` introduces improvements in the KG services, enhancing KG overall performance.
Renku ``0.32.0`` introduces improvements in the KG services, enhancing KG overall performance.

User-Facing Changes
~~~~~~~~~~~~~~~~~~~
Expand Down
4 changes: 2 additions & 2 deletions helm-chart/renku/requirements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ dependencies:
version: 0.8.0
condition: gitlab.enabled
- name: postgresql
version: 9.1.1
repository: "https://raw.githubusercontent.com/bitnami/charts/eb5f9a9513d987b519f0ecd732e7031241c50328/bitnami"
version: 12.6.8
repository: "https://charts.bitnami.com/bitnami"
condition: postgresql.enabled
- name: keycloakx
version: 2.1.0
Expand Down
6 changes: 3 additions & 3 deletions helm-chart/renku/templates/setup-job-gitlab.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ spec:
{{ if .Values.global.externalServices.postgresql.enabled }}
value: {{ .Values.global.externalServices.postgresql.username }}
{{- else -}}
value: {{ .Values.postgresql.postgresqlUsername }}
value: {{ .Values.postgresql.auth.username }}
{{- end }}
{{- if not .Values.global.externalServices.postgresql.enabled }}
- name: DB_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
name: "{{ template "postgresql.fullname" . }}"
key: postgresql-password
key: postgres-password
{{- else if .Values.global.externalServices.postgresql.password }}
- name: DB_ADMIN_PASSWORD
value: {{ .Values.global.externalServices.postgresql.password }}
Expand All @@ -51,7 +51,7 @@ spec:
valueFrom:
secretKeyRef:
name: {{ .Values.global.externalServices.postgresql.existingSecret }}
key: postgresql-password
key: postgres-password
{{- end }}
- name: GITLAB_ENABLED
value: {{ .Values.gitlab.enabled | quote }}
Expand Down
6 changes: 3 additions & 3 deletions helm-chart/renku/templates/setup-job-keycloak-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ spec:
{{ if .Values.global.externalServices.postgresql.enabled }}
value: {{ .Values.global.externalServices.postgresql.username }}
{{- else -}}
value: {{ .Values.postgresql.postgresqlUsername }}
value: {{ .Values.postgresql.auth.username }}
{{- end }}
{{- if not .Values.global.externalServices.postgresql.enabled }}
- name: DB_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
name: "{{ template "postgresql.fullname" . }}"
key: postgresql-password
key: postgres-password
{{- else if .Values.global.externalServices.postgresql.password }}
- name: DB_ADMIN_PASSWORD
value: {{ .Values.global.externalServices.postgresql.password }}
Expand All @@ -51,7 +51,7 @@ spec:
valueFrom:
secretKeyRef:
name: {{ .Values.global.externalServices.postgresql.existingSecret }}
key: postgresql-password
key: postgres-password
{{- end }}
- name: KEYCLOAK_DB_USERNAME
value: {{ .Values.global.keycloak.postgresUser | quote }}
Expand Down
6 changes: 3 additions & 3 deletions helm-chart/renku/templates/setup-job-renku-dbs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ spec:
{{ if .Values.global.externalServices.postgresql.enabled }}
value: {{ .Values.global.externalServices.postgresql.username }}
{{- else -}}
value: {{ .Values.postgresql.postgresqlUsername }}
value: {{ .Values.postgresql.auth.username }}
{{- end }}
{{- if not .Values.global.externalServices.postgresql.enabled }}
- name: DB_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
name: "{{ template "postgresql.fullname" . }}"
key: postgresql-password
key: postgres-password
{{- else if .Values.global.externalServices.postgresql.password }}
- name: DB_ADMIN_PASSWORD
value: {{ .Values.global.externalServices.postgresql.password }}
Expand All @@ -50,7 +50,7 @@ spec:
valueFrom:
secretKeyRef:
name: {{ .Values.global.externalServices.postgresql.existingSecret }}
key: postgresql-password
key: postgres-password
{{- end }}
- name: EVENTLOG_DB_USERNAME
value: {{ .Values.global.graph.dbEventLog.postgresUser | quote }}
Expand Down
117 changes: 60 additions & 57 deletions helm-chart/renku/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ global:
version: 0.4.0
## The CLI version used for newly created projects by the core service,
## if this is left blank then the core service will derive the CLI version
## for a new project based on its own version.
## for a new project based on its own version.
## NOTE should only be set for CI deployments and development purposes.
cli_version:
cli_version:
## Note that the graph will not turned on by default until renku 0.4.0
graph:
dbEventLog:
Expand Down Expand Up @@ -188,8 +188,12 @@ global:
image:
repository: renku/certificates
tag: "0.0.2"
customCAs: []
customCAs:
[]
# - secret:
crc:
serviceName: renku-crc

## Database credentials for postgres
db:
## Used by the renku-data-services and potentially other backend services
Expand All @@ -200,9 +204,6 @@ global:
## The secret is not re-generated or modified in any way if it already exists.
passwordSecretName: renku-db-common-password

crc:
serviceName: renku-crc

## Ingress configuration
## See: https://kubernetes.io/docs/concepts/services-networking/ingress/
ingress:
Expand Down Expand Up @@ -364,41 +365,42 @@ keycloakx:
# For production deployments check out
# https://github.com/bitnami/charts/blob/master/bitnami/postgresql/values-production.yaml
postgresql:
# If an external Postgres database is defined in global.externalServices.postgresql,
# postgresql.enabled should be false, and global.externalServices.postgresql.enabled should be true.
# By default, Renku-bundled Postgres is enabled.
enabled: true
## We use the defaults here. Note that these basic configs could also be set as
## global values such that sub-charts can access them too.

## We use the defaults here.
postgresqlDatabase: postgres
postgresqlUsername: postgres
auth:
username: postgres
database: postgres

## The admin password should be set explicitly, otherwise a random string will be created.
## Alternatively an existing secret can be provided. Note that postgres
## DOES NOT tolerate a change of the admin password when upgrading.
# postgresqlPassword:
## The admin password should be set explicitly, otherwise a random string will be
## created. Alternatively an existing secret can be provided. Note that postgres
## DOES NOT tolerate a change of the admin password when upgrading.
# postgresqlPassword:

## Use an existing secret instead of creating a new one. It must have a
## postgresql-password key containing the password for the posgres user.
# existingSecret:
## Use an existing secret instead of creating a new one. It must have a
## postgresql-password key containing the password for the postgres user.
# existingSecret:

image:
repository: bitnami/postgresql
tag: 12.8.0
# Consider replication. These are the defaults for the basic settings.
# replicationUsername: repl_user
# replicationPassword: repl_password # generate a random password `openssl rand -hex 32`

persistence:
## We use the defaults here, but they will probably be modified for most deployments.
enabled: true
size: 8Gi
## Provide an existing PersistentVolumeClaim to be reused.
# existingClaim:
# image:
# repository: bitnami/postgresql
# tag:

# Consider replication. These are the defaults for the basic settings.
replication:
enabled: false
user: repl_user
password: repl_password # generate a random password `openssl rand -hex 32`
slaveReplicas: 1
primary:
persistence:
## We use the defaults here, but they will probably be modified for most deployments.
enabled: true
size: 8Gi
## Provide an existing PersistentVolumeClaim to be reused.
# existingClaim:

# Consider replication. These are the defaults for the basic settings.
readReplicas:
enabled: false
replicaCount: 1

redis:
###########################################################################
Expand Down Expand Up @@ -687,7 +689,8 @@ ui:
ingress:
enabled: false

resources: {}
resources:
{}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
Expand Down Expand Up @@ -814,10 +817,8 @@ ui:
# To showcase projects, provide the identifier following the structure below
# title, description, and imageUrl can be overridden, as illustrated below, if desired.
projects:
-
identifier: hdbi/data-management/cccooci
-
identifier: renku-ui-tests/stable-project
- identifier: hdbi/data-management/cccooci
- identifier: renku-ui-tests/stable-project
overrideTitle: "Stable Project: A project for testing"
overrideDescription: "This is a project for **testing**. You may find it useful to look at."
overrideImageUrl: https://gitlab.renkulab.io/uploads/-/system/project/avatar/36159/graphical_abstract.png
Expand Down Expand Up @@ -873,7 +874,8 @@ ui:

ingress:
enabled: false
annotations: {}
annotations:
{}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
Expand Down Expand Up @@ -1167,7 +1169,8 @@ notebooks:

ingress:
enabled: false
annotations: {}
annotations:
{}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
path: /
Expand All @@ -1178,7 +1181,8 @@ notebooks:
# hosts:
# - chart-example.local

resources: {}
resources:
{}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
Expand Down Expand Up @@ -1264,7 +1268,6 @@ notebooks:
## Used for testing - should be set to false for production
dummyStores: false


tests:
enabled: false
image:
Expand Down Expand Up @@ -1338,7 +1341,8 @@ gateway:
type: ClusterIP
port: 80

resources: {}
resources:
{}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
Expand Down Expand Up @@ -1430,7 +1434,7 @@ graph:
webhookService:
image:
repository: renku/webhook-service
tag: '2.43.0'
tag: "2.43.0"
pullPolicy: IfNotPresent
service:
type: ClusterIP
Expand All @@ -1450,7 +1454,7 @@ graph:
tokenRepository:
image:
repository: renku/token-repository
tag: '2.43.0'
tag: "2.43.0"
pullPolicy: IfNotPresent
service:
type: ClusterIP
Expand All @@ -1462,10 +1466,10 @@ graph:
jvmXmx: 128M
gitlab:
rateLimit: 50/sec
projectTokenTTL: '365 days'
projectTokenTTL: "365 days"
# name of the Project Access Tokens to be created on behalf of the user in GitLab; defaults to .Release.Name
projectTokenName:
projectTokenDuePeriod: '184 days'
projectTokenDuePeriod: "184 days"
connectionPool: 2
tokenEncryption:
## A secret for signing access tokens stored in the database
Expand All @@ -1476,7 +1480,7 @@ graph:
replicas: 1
image:
repository: renku/triples-generator
tag: '2.43.0'
tag: "2.43.0"
pullPolicy: IfNotPresent
service:
type: ClusterIP
Expand All @@ -1499,7 +1503,7 @@ graph:
replicas: 1
image:
repository: renku/knowledge-graph
tag: '2.43.0'
tag: "2.43.0"
pullPolicy: IfNotPresent
service:
type: ClusterIP
Expand All @@ -1519,7 +1523,7 @@ graph:
eventLog:
image:
repository: renku/event-log
tag: '2.43.0'
tag: "2.43.0"
pullPolicy: IfNotPresent
service:
type: ClusterIP
Expand All @@ -1535,7 +1539,7 @@ graph:
commitEventService:
image:
repository: renku/commit-event-service
tag: '2.43.0'
tag: "2.43.0"
pullPolicy: IfNotPresent
service:
type: ClusterIP
Expand All @@ -1549,9 +1553,9 @@ graph:

sentry:
enabled: false
dsn: '' # Sentry dsn
sentryDsnRenkuPython: '' # Sentry dsn for renku CLI
environment: '' # Environment name e.g. renkulabio
dsn: "" # Sentry dsn
sentryDsnRenkuPython: "" # Sentry dsn for renku CLI
environment: "" # Environment name e.g. renkulabio

persistence:
enabled: true
Expand All @@ -1565,7 +1569,6 @@ graph:
accessMode: ReadWriteOnce
size: 2Gi


## Configuration for renku-core service
core:
apiBasePath: /api
Expand Down
Loading

0 comments on commit a7b49dc

Please sign in to comment.