-
Notifications
You must be signed in to change notification settings - Fork 60
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
[Bug]: Zitadel deployment on EKS with AWS PostgreSQL RDS instance - setup job failure #281
Comments
Hi, I am also facing the same issue while upgrading the zitadel from v2.55.8 to 2.56.0. The deployment is based on EKS v1.31 with RDS Postgres v15.7 Please suggest |
Any update/workaround on this issue? |
The ssl mode should be More specificaly here |
The error of the screenshot can be fixed by executing |
We are running the installation of Zitadel in Gitops version. Is there solution that suits an automated setup process? |
@Smana Do you have working configurations for RDS that you can share?. I will really appreciate. |
@adlerhurst How can we run the |
@Smana will test this out and see on how it goes. Thank you! |
@Smana thanks for the example. I am confused though. You are setting the master password in the crossplane config also referencing the same envvar secret. Does that mean that the master password is just being used for other rds postgresql admin funcionality for the database and not by zitadel? I am missing where rds is being configured to trust client certs issued by the vault cert manager cluster issuer. |
I was confusing myself, now I see you are using username/password auth for connecting to RDS and not client certs. |
Yes and all the configurations are loaded from environment variables. |
After using the
Please suggest |
@suchitsancheti did you try increasing activeDeadlineSeconds value of setupJob?
|
@jmutai I have tried with values 600, 900 and 1200 and got the same result. |
Preflight Checklist
Environment
Self-hosted
Version
8.5.0
Database
PostgreSQL
Database Version
16
Describe the problem caused by this bug
Attempting installation of Zitadel on EKS Kubernetes cluster fails at setup job when using AWS RDS for PostgreSQL. Initially the issue was with SSL, but after setting SSL mode to disable, and
rds.force_ssl = 0
on RDS, I was able to connect successfully to RDS using username and password.Database initialization was also successful, but setup job will get stuck to infinity with the following error:
time="2024-10-16T18:28:34Z" level=warning msg="migration already started, will check again in 5 seconds" caller="/home/runner/work/zitadel/zitadel/internal/migration/migration.go:130" migration step=projections.login_policies5
Can you help point out if this is known issue and there is a workaround.
To reproduce
Screenshots
Expected behavior
Init and Setup job successful for Zitadel to be healthy and running.
Operating System
Kubernetes (AWS EKS) - 1.30
Relevant Configuration
Database:
Postgres:
Port: 5432
Database:
MaxOpenConns: 20
MaxIdleConns: 10
MaxConnLifetime: 30m
MaxConnIdleTime: 5m
User:
Username: zitadel
SSL:
Mode: disable
Admin:
Username: zitadel
SSL:
Mode: disable
configSecretName: zitadel-config-secret
configSecretKey: config.yaml
Additional Context
No response
The text was updated successfully, but these errors were encountered: