-
Notifications
You must be signed in to change notification settings - Fork 2
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
Support for postgres version upgrade using Bitnami chart #271
Comments
FYI @evegufy we moved this to our general tasks for system team to find together a way for updates |
@FaGru3n next week we'll test a blue green deployment approach, just fyi as it may be affecting this issue. |
This comment worked for me. According to the Postgresql documentation:
# Chart.yaml
apiVersion: v2
name: portal-postgres
description: A Helm chart for Kubernetes
type: application
version: 0.1.0
appVersion: "1.16.0"
dependencies:
- condition: postgresql.enabled
name: postgresql
repository: https://charts.bitnami.com/bitnami
version: 11.9.13 # postgres 14
- condition: newpostgresql.enabled
name: postgresql
repository: https://charts.bitnami.com/bitnami
alias: newpostgresql
version: 12.12.10 # postgres 15 # values.yaml
postgresql:
enabled: false
auth:
database: "postgres"
port: 5432
postgresPassword: "asd"
newpostgresql:
enabled: true
fullnameOverride: portal-postgres-new
auth:
database: "postgres"
port: 5432
postgresPassword: "asd" Let's try this tomorrow in a session. |
A new follow-up issue is created to document the process so I would close this one. |
I'm attempting to execute a major postgres version upgrade (from 14 to 15) for the containerized image from Bitnami.
Up to now, there doesn't exist an official documentation on how to upgrade those images:
bitnami/charts#8025
bitnami/charts#14926
Therefore, I used a combination of the following two comments as guidance:
bitnami/charts#8025 (comment)
bitnami/charts#8025 (comment)
Unfortunately, in the end, I'm always facing this error in step at step 8 of the list below:
The source cluster was not shut down cleanly.
I assume because I'm not doing the following step 2 (from bitnami/charts#8025 (comment)) correctly:
"POSTGRES_DB must be unset in the Helm Release, otherwise migration script will complain about the present database."
I'd next look into bitnami/charts#8025 (comment)
Here the step that I'm executing:
enable diagnosticMode for postgres dependency
unset POSTGRES_DATABASE
unset POSTGRES_DATABASE
cd /tmp/
perl -e 'use IO::Socket::INET; my $s = IO::Socket::INET->new(PeerAddr=>"downloads.bitnami.com", PeerPort=>80, Proto=>"tcp"); print $s "GET /files/stacksmith/postgresql-14.2.0-0-linux-amd64-debian-11.tar.gz HTTP/1.0\r\nHost: downloads.bitnami.com\r\n\r\n"; while(<$s>) { last if $_ eq "\r\n" }; open(my $f, ">", "postgresql-14.2.0-0-linux-amd64-debian-11.tar.gz") or die "Could not open file: $!"; print $f $_ while <$s>; close $f; close $s;'
Can you please support me for this issue?
Figuring out how to execute a postgres version upgrade for the containerized image from Bitnami could be beneficial to multiple products, not just for portal, as multiple products are using it as dependency.
The text was updated successfully, but these errors were encountered: