Hello.
I’m trying to deploy GitLab 14.0.11 (using official gitlab helm chart version 5.0.11) instance in Kubernetes. I already have test GitLab-omnibus installation (which is also 14.0.11) running on EC2 instance in AWS with RDS database. What I want to achieve is to run GitLab in Kubernetes with my existing SQL data, so I stop my test GitLab instance, copied its database using CREATE DATABASE gitlab_k8s TEMPLATE gitlab_test;
and configure GitLab kubernetes deployment to use it.
My RDS instance is PostgreSQL 12.7 which is compatible with GitLab 14.x
Unfortunately gitlab-migrations-1
Job is failing. Here is a log snippet from pod:
certificates WARNING: ca-certificates.crt does not contain exactly one certificate or CRL: skipping
configure '/init-config/rails-secrets/./secrets.yml' -> '/init-secrets/rails-secrets/./secrets.yml'
configure '/init-config/rails-secrets/.' -> '/init-secrets/rails-secrets/.'
configure '/init-config/migrations/./initial_root_password' -> '/init-secrets/migrations/./initial_root_password'
configure '/init-config/migrations/./gitlab_shared_runners_registration_token' -> '/init-secrets/migrations/./gitlab_shared_runners_registration_token'
configure '/init-config/migrations/.' -> '/init-secrets/migrations/.'
configure '/init-config/gitaly/./gitaly_token' -> '/init-secrets/gitaly/./gitaly_token'
configure '/init-config/gitaly/.' -> '/init-secrets/gitaly/.'
configure '/init-config/redis/./redis-password' -> '/init-secrets/redis/./redis-password'
configure '/init-config/redis/.' -> '/init-secrets/redis/.'
configure '/init-config/postgres/./psql-password' -> '/init-secrets/postgres/./psql-password'
configure '/init-config/postgres/.' -> '/init-secrets/postgres/.'
migrations Begin parsing .erb files from /var/opt/gitlab/templates
migrations Writing /srv/gitlab/config/resque.yml
migrations Writing /srv/gitlab/config/cable.yml
migrations Writing /srv/gitlab/config/database.yml
migrations Writing /srv/gitlab/config/gitlab.yml
migrations Copying other config files found in /var/opt/gitlab/templates
migrations Attempting to run '/scripts/wait-for-deps /scripts/db-migrate' as a main process
migrations #<Thread:0x00007f59fa862918 /scripts/rails-dependencies:16 run> terminated with exception (report_on_exception is true):
migrations /scripts/lib/checks/postgresql.rb:58:in `database_schema_version': undefined method `database' for #<Hash:0x00007f59fb501a98> (NoMethodError)
migrations from /scripts/lib/checks/postgresql.rb:72:in `check_schema_version'
migrations from /scripts/lib/checks/postgresql.rb:17:in `run'
migrations from /scripts/rails-dependencies:17:in `block in <main>'
migrations /scripts/lib/checks/postgresql.rb:58:in `database_schema_version': undefined method `database' for #<Hash:0x00007f59fb501a98> (NoMethodError)
migrations from /scripts/lib/checks/postgresql.rb:72:in `check_schema_version'
migrations from /scripts/lib/checks/postgresql.rb:17:in `run'
migrations from /scripts/rails-dependencies:17:in `block in <main>'
migrations Checking: resque.yml, cable.yml
migrations + SUCCESS connecting to 'redis://gitlab-redis-master.gitlab.svc:6379' from cable.yml, through gitlab-redis-master.gitlab.svc
migrations + SUCCESS connecting to 'redis://gitlab-redis-master.gitlab.svc:6379' from resque.yml, through gitlab-redis-master.gitlab.svc
I appreciate any help with this.