Hi everyone! I'm trying to deploy datahub using he...
# getting-started
s
Hi everyone! I'm trying to deploy datahub using helm chart, specify postgresql database:
values.yaml
Copy code
host: "deps-postgresql.deps.svc.cluster.local:5432"
      hostForpostgresqlClient: "deps-postgresql.deps.svc.cluster.local"
      port: "5432"
      url: "jdbc:<postgresql://deps-postgresql.deps.svc.cluster.local:5432/dh02?verifyServerCertificate=false&useSSL=true&useUnicode=yes&characterEncoding=UTF-8&enabledTLSProtocols=TLSv1.2>"
      driver: "org.postgresql.Driver"
      username: "postgres"
      password:
        secretRef: postgresql-secrets
        secretKey: postgres-password
      # --------------OR----------------
      #   value: password
But postgresql setup job creates database
datahub
and ignores database
dh02
specified in connection string. Any minds?
Copy code
2023/05/12 15:11:11 Waiting for: <tcp://deps-postgresql.deps.svc.cluster.local:5432>
2023/05/12 15:11:11 Connected to <tcp://deps-postgresql.deps.svc.cluster.local:5432>
CREATE DATABASE
-- create metadata aspect table
After job finished database
datahub
appears on the postgresql instance and tables present there, but db
dh02
is not.
📖 1
🔍 1
1
2
l
Hey there 👋 I'm The DataHub Community Support bot. I'm here to help make sure the community can best support you with your request. Let's double check a few things first: ✅ There's a lot of good information on our docs site: www.datahubproject.io/docs, Have you searched there for a solution? ✅ button ✅ It's not uncommon that someone has run into your exact problem before in the community. Have you searched Slack for similar issues? ✅ button Did you find a solution to your issue? ❌ Sorry you weren't able to find a solution. I'm sending you some tips on info you can provide to help the community troubleshoot. Whenever you feel your issue is solved, please react ✅ to your original message to let us know!
s
Solution found: values.yaml: sql: datasource: extraEnvs: - name: "DATAHUB_DB_NAME" value: "dh2" ... postgresqlSetupJob: extraEnvs: - name: "DATAHUB_DB_NAME" value: "dh2" ... datahubSystemUpdate: extraEnvs: - name: "DATAHUB_DB_NAME" value: "dh2"
plus1 1
❤️ 1