powerful-cat-68806
12/01/2022, 10:33 AMdatahub-datahub-upgrade-job-xxxxx:
Error: secret "mysql-secrets" not found
I presume this error occurs because I need a DB for the app(pgSQL / MySQL). I want to use a DB that is provided by my cloud vendor(AWS) & not from the app deployment
Obviously, I’m customizing the values.yaml both for prereq & datahub
Pls. advise
10x 🙏astonishing-answer-96712
12/01/2022, 6:25 PMastonishing-answer-96712
12/01/2022, 6:55 PMastonishing-answer-96712
12/01/2022, 6:56 PMpowerful-cat-68806
12/02/2022, 3:44 AMpowerful-cat-68806
12/02/2022, 12:05 PMastonishing-answer-96712
12/02/2022, 6:13 PMastonishing-answer-96712
12/02/2022, 6:14 PMastonishing-answer-96712
12/02/2022, 6:14 PMpassword:
secretRef: mysql-secrets
secretKey: mysql-root-passwordastonishing-answer-96712
12/02/2022, 6:14 PMastonishing-answer-96712
12/02/2022, 6:14 PMastonishing-answer-96712
12/02/2022, 6:15 PMpowerful-cat-68806
12/03/2022, 6:04 PMloud-island-88694
bulky-electrician-72362
12/05/2022, 7:05 AMpowerful-cat-68806
12/21/2022, 9:00 AMWarning Failed 18m (x12 over 20m) kubelet Error: secret "neo4j-secrets" not found
This is for the pods datahub-datahub-gms-xxxxx-xx & datahub-datahub-upgrade-job-xxxx
Where should I remove it in the code, to avoid this error?
10x guys 😉astonishing-answer-96712
12/21/2022, 7:31 PMorange-night-91387
12/21/2022, 7:52 PMThe dependencies must be deployed before deploying Datahub. We created a separate chart for deploying the dependencies with example configuration. They could also be deployed separately on-prem or leveraged as managed services. To remove your dependency on Neo4j, set enabled to false in the datahub-kubernetes/prerequisites/values.yaml file. Then, override the graph_service_impl field in datahub-kubernetes/datahub/values.yaml to have the value elasticsearch instead of neo4j.
If you are deploying your own ElasticSearch & Neo4J you will need to set up relevant secrets for the credentials required to connect to those services. For ElasticSearch we have a guide for setting up the secrets here, for Neo4J you will need to set up the secrets in a similar manner, but using the name you got in the above error: neo4j-secrets . The quickstart doc has an example specific for Neo4J using the default value for non-prod deploys.powerful-cat-68806
12/21/2022, 8:07 PMpowerful-cat-68806
12/21/2022, 8:09 PMorange-night-91387
12/21/2022, 8:16 PMglobal.neo4j.enabled=false on both prerequisites values.yaml and datahub values.yaml. The only reference to neo4j-secrets should be locked behind that section, so with it disabled it shouldn't try to access that secret.powerful-cat-68806
12/21/2022, 8:30 PMglobal.neo4j.enabled=false
I don’t see this in the values.yaml file
In prerequisite I see:
Official neo4j chart uses the Neo4j Enterprise Edition which requires a license
neo4j:
enabled: false # set this to true, if you have a license for the enterprise edition
acceptLicenseAgreement: "yes"
defaultDatabase: "graph.db"
neo4jPassword: "datahub"
# For better security, add password to neo4j-secrets k8s secret and uncomment below
# existingPasswordSecret: neo4j-secrets
core:
standalone: true
# Deploys neo4j community version. Only supports single node
neo4j-community:
enabled: false # set this to false, if you have a license for the enterprise edition
acceptLicenseAgreement: "yes"
defaultDatabase: "graph.db"
# For better security, add neo4j-secrets k8s secret with neo4j-password and uncomment below
existingPasswordSecret: neo4j-secretspowerful-cat-68806
12/21/2022, 8:36 PM# neo4j:
# host: "prerequisites-neo4j-community:7474"
# uri: "<bolt://prerequisites-neo4j-community>"
# username: "neo4j"
# password:
# secretRef: neo4j-secrets
# secretKey: neo4j-password
# hostAliases:
# - ip: "192.168.0.104"
# hostnames:
# - "broker"
# - "mysql"
# - "postgresql"
# - "elasticsearch"
# - "neo4j"
global:
graph_service_impl: neo4j
datahub_analytics_enabled: true
datahub_standalone_consumers_enabled: false
global:
graph_service_impl: neo4j
datahub_analytics_enabled: true
datahub_standalone_consumers_enabled: falsepowerful-cat-68806
12/21/2022, 8:36 PMpowerful-cat-68806
12/21/2022, 8:43 PMorange-night-91387
12/21/2022, 9:02 PMneo4j:
enabled: false
Like you have in the prerequisitesorange-night-91387
12/21/2022, 9:05 PMpowerful-cat-68806
12/21/2022, 9:28 PMorange-night-91387
12/21/2022, 9:36 PMThen, override the graph_service_impl field in datahub-kubernetes/datahub/values.yaml to have the value elasticsearch instead of neo4j.
From docs linked abovepowerful-cat-68806
12/21/2022, 9:39 PMglobal:
graph_service_impl: neo4j
datahub_analytics_enabled: true
datahub_standalone_consumers_enabled: false
Should I comment it out, or add a line enabled: false?orange-night-91387
12/21/2022, 9:45 PMpowerful-cat-68806
12/21/2022, 9:47 PMorange-night-91387
12/21/2022, 10:01 PMpowerful-cat-68806
12/21/2022, 10:09 PMglobal:
graph_service_impl: elasticsearch
datahub_analytics_enabled: true
datahub_standalone_consumers_enabled: false
?orange-night-91387
12/21/2022, 10:12 PMpowerful-cat-68806
12/21/2022, 10:13 PMpowerful-cat-68806
12/21/2022, 10:13 PMorange-night-91387
12/21/2022, 10:34 PMorange-night-91387
12/21/2022, 10:35 PMpowerful-cat-68806
12/21/2022, 10:47 PMdatahub-datahub-upgrade-job-z4d9j 0/1 CreateContainerConfigError 0 14m
My values.yaml is set to a pgSQL db that I’m managingpowerful-cat-68806
12/21/2022, 10:47 PMorange-night-91387
12/21/2022, 11:11 PMpowerful-cat-68806
12/22/2022, 4:30 AMorange-night-91387
12/22/2022, 5:52 PMPaul Logan
20 days ago
You can change the name/info on line 175
Paul Logan
20 days ago
password:
secretRef: mysql-secrets
secretKey: mysql-root-password
Paul Logan
20 days ago
there's also more info in the comments under those lines
Paul Logan
20 days ago
<https://github.com/acryldata/datahub-helm/blob/master/charts/datahub/values.yaml#L175>
and
Peter Szalai
17 days ago
hi
@Aviv Cohen
,
Sure, you can use your own DB instance. Here is an example configuration: <https://github.com/acryldata/datahub-helm/blob/master/charts/datahub/values.yaml#L180>
If you run the prerequisite chart, you can disable the mysql instance there, as it won't be in use.
If you have done so, please replace the secret reference in the main datahub chart to the secret name you have manually created.bulky-electrician-72362
12/27/2022, 11:56 AMhelm upgrade ? yes, datahubUpgrade shouldn't be disabledpowerful-cat-68806
12/27/2022, 12:05 PMmysql-secretpowerful-cat-68806
12/27/2022, 12:07 PMdatahubUpgrade, helm upgrade succeedpowerful-cat-68806
12/27/2022, 1:08 PMbulky-electrician-72362
12/27/2022, 1:11 PMbulky-electrician-72362
12/27/2022, 1:12 PMpowerful-cat-68806
12/27/2022, 3:59 PMvalues.yamlpowerful-cat-68806
12/27/2022, 4:24 PMbulky-electrician-72362
12/27/2022, 4:33 PMpowerful-cat-68806
12/27/2022, 7:03 PMpassword:
# secretRef: postgresql-secrets
# secretKey: postgres-password
# --------------OR----------------
value: 'xxxxxxxxxxxxx'bulky-electrician-72362
12/27/2022, 8:33 PMorange-night-91387
12/27/2022, 10:30 PMpowerful-cat-68806
12/28/2022, 8:06 AMbulky-electrician-72362
12/28/2022, 8:53 AM