diff --git a/README.md b/README.md index 843bd96ae..99c5d445d 100644 --- a/README.md +++ b/README.md @@ -136,7 +136,7 @@ I use a [pgautoupgrade/docker-pgautoupgrade](https://github.com/pgautoupgrade/do # Init Container for Major PostgreSQL Upgrades, not needed permanently initContainers: - name: pgautoupgrade - image: pgautoupgrade/pgautoupgrade:17-bookworm + image: pgautoupgrade/pgautoupgrade:18-debian securityContext: runAsUser: 0 runAsGroup: 0 diff --git a/apps/authelia/hr-postgresql.yaml b/apps/authelia/hr-postgresql.yaml index 8eb1a7f87..ff48cf325 100644 --- a/apps/authelia/hr-postgresql.yaml +++ b/apps/authelia/hr-postgresql.yaml @@ -32,7 +32,7 @@ spec: postgresql: image: repository: public.ecr.aws/docker/library/postgres - tag: 17.6@sha256:cecd364cc7ec03ab6148ab650efc5200548a89fd2e4f47a8ba6e6cf08c18805d + tag: 18.0@sha256:1d288494853e244e7a78d87b3526e650e5221c622f9768ecac9313d0874a9c39 env: POSTGRES_DB: authelia POSTGRES_USER: authelia @@ -70,38 +70,20 @@ spec: enabled: true readiness: enabled: true - # initContainers: - # # # Init Container to migrate from bitnami to official postgres container, adds missing config files, not needed permanently - # # bitnami-migrate: - # # image: - # # repository: alpine - # # tag: 3.22@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1 - # # command: - # # - /bin/sh - # # - -c - # # - | - # # chown -R 999:999 $PGDATA - # # [ -f "$PGDATA/postgresql.conf" ] || wget https://gist.githubusercontent.com/Pumba98/62fd44ab30d0f2725779bfd3443e155d/raw/277d4b15da500c14edb06fd49674b37375ca6604/postgresql.conf -P $PGDATA - # # [ -f "$PGDATA/pg_hba.conf" ] || wget https://gist.githubusercontent.com/Pumba98/62fd44ab30d0f2725779bfd3443e155d/raw/277d4b15da500c14edb06fd49674b37375ca6604/pg_hba.conf -P $PGDATA - # # env: - # # PGDATA: /var/lib/postgresql/data - # # securityContext: - # # runAsUser: 0 - # # runAsGroup: 0 - - # # # Init Container for Major PostgreSQL Upgrades, not needed permanently - # # pgautoupgrade: - # # image: - # # repository: pgautoupgrade/pgautoupgrade - # # tag: 17-bookworm - # # # securityContext: - # # # runAsUser: 0 - # # # runAsGroup: 0 - # # env: - # # PGAUTO_ONESHOT: yes - # # POSTGRES_USER: authelia - # # POSTGRES_DB: authelia - # # PGDATA: /var/lib/postgresql/data + initContainers: + # Init Container for Major PostgreSQL Upgrades, not needed permanently + pgautoupgrade: + image: + repository: pgautoupgrade/pgautoupgrade + tag: 18-debian + securityContext: + runAsUser: 0 + runAsGroup: 0 + env: + PGAUTO_ONESHOT: "yes" + POSTGRES_USER: authelia + POSTGRES_DB: authelia + PGDATA: /var/lib/postgresql/data service: primary: controller: primary diff --git a/apps/immich/hr-postgresql.yaml b/apps/immich/hr-postgresql.yaml index 4158fb249..162adc2d3 100644 --- a/apps/immich/hr-postgresql.yaml +++ b/apps/immich/hr-postgresql.yaml @@ -70,20 +70,20 @@ spec: enabled: true readiness: enabled: true - # initContainers: - # # Init Container for Major PostgreSQL Upgrades, not needed permanently - # pgautoupgrade: - # image: - # repository: ghcr.io/pumba98/pgautoupgrade-vchord - # tag: 17-debian-v0.3.0 - # # securityContext: - # # runAsUser: 0 - # # runAsGroup: 0 - # env: - # PGAUTO_ONESHOT: yes - # POSTGRES_USER: immich - # POSTGRES_DB: immich - # PGDATA: /var/lib/postgresql/data + initContainers: + # Init Container for Major PostgreSQL Upgrades, not needed permanently + pgautoupgrade: + image: + repository: ghcr.io/pumba98/pgautoupgrade-vchord + tag: 18-debian-v0.4.3 + securityContext: + runAsUser: 0 + runAsGroup: 0 + env: + PGAUTO_ONESHOT: "yes" + POSTGRES_USER: immich + POSTGRES_DB: immich + PGDATA: /var/lib/postgresql/data service: primary: controller: primary diff --git a/apps/linkwarden/hr-postgresql.yaml b/apps/linkwarden/hr-postgresql.yaml index dc570f8f6..2bf662a90 100644 --- a/apps/linkwarden/hr-postgresql.yaml +++ b/apps/linkwarden/hr-postgresql.yaml @@ -32,7 +32,7 @@ spec: postgresql: image: repository: public.ecr.aws/docker/library/postgres - tag: 17.6@sha256:cecd364cc7ec03ab6148ab650efc5200548a89fd2e4f47a8ba6e6cf08c18805d + tag: 18.0@sha256:1d288494853e244e7a78d87b3526e650e5221c622f9768ecac9313d0874a9c39 env: POSTGRES_DB: linkwarden POSTGRES_USER: linkwarden @@ -70,35 +70,20 @@ spec: enabled: true readiness: enabled: true - # initContainers: - # # # Init Container to migrate from bitnami to official postgres container, adds missing config files, not needed permanently - # # bitnami-migrate: - # # image: - # # repository: alpine - # # tag: 3.22@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1 - # # command: - # # - /bin/sh - # # - -c - # # - | - # # chown -R 999:999 $PGDATA - # # [ -f "$PGDATA/postgresql.conf" ] || wget https://gist.githubusercontent.com/Pumba98/62fd44ab30d0f2725779bfd3443e155d/raw/277d4b15da500c14edb06fd49674b37375ca6604/postgresql.conf -P $PGDATA - # # [ -f "$PGDATA/pg_hba.conf" ] || wget https://gist.githubusercontent.com/Pumba98/62fd44ab30d0f2725779bfd3443e155d/raw/277d4b15da500c14edb06fd49674b37375ca6604/pg_hba.conf -P $PGDATA - # # env: - # # PGDATA: /var/lib/postgresql/data - - # # # Init Container for Major PostgreSQL Upgrades, not needed permanently - # # pgautoupgrade: - # # image: - # # repository: pgautoupgrade/pgautoupgrade - # # tag: 17-bookworm - # # # securityContext: - # # # runAsUser: 0 - # # # runAsGroup: 0 - # # env: - # # PGAUTO_ONESHOT: yes - # # POSTGRES_USER: linkwarden - # # POSTGRES_DB: linkwarden - # # PGDATA: /var/lib/postgresql/data + initContainers: + # Init Container for Major PostgreSQL Upgrades, not needed permanently + pgautoupgrade: + image: + repository: pgautoupgrade/pgautoupgrade + tag: 18-debian + securityContext: + runAsUser: 0 + runAsGroup: 0 + env: + PGAUTO_ONESHOT: "yes" + POSTGRES_USER: linkwarden + POSTGRES_DB: linkwarden + PGDATA: /var/lib/postgresql/data service: primary: controller: primary diff --git a/apps/memos/hr-postgresql.yaml b/apps/memos/hr-postgresql.yaml index d71d9de13..8d334399f 100644 --- a/apps/memos/hr-postgresql.yaml +++ b/apps/memos/hr-postgresql.yaml @@ -32,7 +32,7 @@ spec: postgresql: image: repository: public.ecr.aws/docker/library/postgres - tag: 17.6@sha256:cecd364cc7ec03ab6148ab650efc5200548a89fd2e4f47a8ba6e6cf08c18805d + tag: 18.0@sha256:1d288494853e244e7a78d87b3526e650e5221c622f9768ecac9313d0874a9c39 env: POSTGRES_DB: memos POSTGRES_USER: memos @@ -71,37 +71,19 @@ spec: readiness: enabled: true initContainers: - # Init Container to migrate from bitnami to official postgres container, adds missing config files, not needed permanently - bitnami-migrate: + # Init Container for Major PostgreSQL Upgrades, not needed permanently + pgautoupgrade: image: - repository: alpine - tag: 3.22@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1 - command: - - /bin/sh - - -c - - | - chown -R 999:999 $PGDATA - [ -f "$PGDATA/postgresql.conf" ] || wget https://gist.githubusercontent.com/Pumba98/62fd44ab30d0f2725779bfd3443e155d/raw/277d4b15da500c14edb06fd49674b37375ca6604/postgresql.conf -P $PGDATA - [ -f "$PGDATA/pg_hba.conf" ] || wget https://gist.githubusercontent.com/Pumba98/62fd44ab30d0f2725779bfd3443e155d/raw/277d4b15da500c14edb06fd49674b37375ca6604/pg_hba.conf -P $PGDATA - env: - PGDATA: /var/lib/postgresql/data + repository: pgautoupgrade/pgautoupgrade + tag: 18-debian securityContext: runAsUser: 0 runAsGroup: 0 - - # # # Init Container for Major PostgreSQL Upgrades, not needed permanently - # # pgautoupgrade: - # # image: - # # repository: pgautoupgrade/pgautoupgrade - # # tag: 17-bookworm - # # # securityContext: - # # # runAsUser: 0 - # # # runAsGroup: 0 - # # env: - # # PGAUTO_ONESHOT: yes - # # POSTGRES_USER: memos - # # POSTGRES_DB: memos - # # PGDATA: /var/lib/postgresql/data + env: + PGAUTO_ONESHOT: "yes" + POSTGRES_USER: memos + POSTGRES_DB: memos + PGDATA: /var/lib/postgresql/data service: primary: controller: primary diff --git a/apps/paperless-ngx/hr-postgresql.yaml b/apps/paperless-ngx/hr-postgresql.yaml index 1e71d7801..1662093a1 100644 --- a/apps/paperless-ngx/hr-postgresql.yaml +++ b/apps/paperless-ngx/hr-postgresql.yaml @@ -32,7 +32,7 @@ spec: postgresql: image: repository: public.ecr.aws/docker/library/postgres - tag: 17.6@sha256:cecd364cc7ec03ab6148ab650efc5200548a89fd2e4f47a8ba6e6cf08c18805d + tag: 18.0@sha256:1d288494853e244e7a78d87b3526e650e5221c622f9768ecac9313d0874a9c39 env: POSTGRES_DB: paperless-ngx POSTGRES_USER: paperless-ngx @@ -70,38 +70,20 @@ spec: enabled: true readiness: enabled: true - # initContainers: - # # # Init Container to migrate from bitnami to official postgres container, adds missing config files, not needed permanently - # # bitnami-migrate: - # # image: - # # repository: alpine - # # tag: 3.22@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1 - # # command: - # # - /bin/sh - # # - -c - # # - | - # # chown -R 999:999 $PGDATA - # # [ -f "$PGDATA/postgresql.conf" ] || wget https://gist.githubusercontent.com/Pumba98/62fd44ab30d0f2725779bfd3443e155d/raw/277d4b15da500c14edb06fd49674b37375ca6604/postgresql.conf -P $PGDATA - # # [ -f "$PGDATA/pg_hba.conf" ] || wget https://gist.githubusercontent.com/Pumba98/62fd44ab30d0f2725779bfd3443e155d/raw/277d4b15da500c14edb06fd49674b37375ca6604/pg_hba.conf -P $PGDATA - # # env: - # # PGDATA: /var/lib/postgresql/data - # # securityContext: - # # runAsUser: 0 - # # runAsGroup: 0 - - # # # Init Container for Major PostgreSQL Upgrades, not needed permanently - # # pgautoupgrade: - # # image: - # # repository: pgautoupgrade/pgautoupgrade - # # tag: 17-bookworm - # # # securityContext: - # # # runAsUser: 0 - # # # runAsGroup: 0 - # # env: - # # PGAUTO_ONESHOT: yes - # # POSTGRES_USER: paperless-ngx - # # POSTGRES_DB: paperless-ngx - # # PGDATA: /var/lib/postgresql/data + initContainers: + # Init Container for Major PostgreSQL Upgrades, not needed permanently + pgautoupgrade: + image: + repository: pgautoupgrade/pgautoupgrade + tag: 18-debian + securityContext: + runAsUser: 0 + runAsGroup: 0 + env: + PGAUTO_ONESHOT: "yes" + POSTGRES_USER: paperless-ngx + POSTGRES_DB: paperless-ngx + PGDATA: /var/lib/postgresql/data service: primary: controller: primary diff --git a/apps/tandoor-recipes/hr-postgresql.yaml b/apps/tandoor-recipes/hr-postgresql.yaml index cb6c98868..8860b2546 100644 --- a/apps/tandoor-recipes/hr-postgresql.yaml +++ b/apps/tandoor-recipes/hr-postgresql.yaml @@ -32,7 +32,7 @@ spec: postgresql: image: repository: public.ecr.aws/docker/library/postgres - tag: 17.6@sha256:cecd364cc7ec03ab6148ab650efc5200548a89fd2e4f47a8ba6e6cf08c18805d + tag: 18.0@sha256:1d288494853e244e7a78d87b3526e650e5221c622f9768ecac9313d0874a9c39 env: POSTGRES_DB: tandoor-recipes POSTGRES_USER: tandoor-recipes @@ -70,38 +70,20 @@ spec: enabled: true readiness: enabled: true - # initContainers: - # # # Init Container to migrate from bitnami to official postgres container, adds missing config files, not needed permanently - # # bitnami-migrate: - # # image: - # # repository: alpine - # # tag: 3.22@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1 - # # command: - # # - /bin/sh - # # - -c - # # - | - # # chown -R 999:999 $PGDATA - # # [ -f "$PGDATA/postgresql.conf" ] || wget https://gist.githubusercontent.com/Pumba98/62fd44ab30d0f2725779bfd3443e155d/raw/277d4b15da500c14edb06fd49674b37375ca6604/postgresql.conf -P $PGDATA - # # [ -f "$PGDATA/pg_hba.conf" ] || wget https://gist.githubusercontent.com/Pumba98/62fd44ab30d0f2725779bfd3443e155d/raw/277d4b15da500c14edb06fd49674b37375ca6604/pg_hba.conf -P $PGDATA - # # env: - # # PGDATA: /var/lib/postgresql/data - # # securityContext: - # # runAsUser: 0 - # # runAsGroup: 0 - - # # # Init Container for Major PostgreSQL Upgrades, not needed permanently - # # pgautoupgrade: - # # image: - # # repository: pgautoupgrade/pgautoupgrade - # # tag: 17-bookworm - # # # securityContext: - # # # runAsUser: 0 - # # # runAsGroup: 0 - # # env: - # # PGAUTO_ONESHOT: yes - # # POSTGRES_USER: tandoor-recipes - # # POSTGRES_DB: tandoor-recipes - # # PGDATA: /var/lib/postgresql/data + initContainers: + # Init Container for Major PostgreSQL Upgrades, not needed permanently + pgautoupgrade: + image: + repository: pgautoupgrade/pgautoupgrade + tag: 18-debian + securityContext: + runAsUser: 0 + runAsGroup: 0 + env: + PGAUTO_ONESHOT: "yes" + POSTGRES_USER: tandoor-recipes + POSTGRES_DB: tandoor-recipes + PGDATA: /var/lib/postgresql/data service: primary: controller: primary