SonarQube’s not going to create any Postgres resources. That’s on you to do before you try to start SonarQube. SonarQube needs to know where its DB/schema is; it will not create a DB/schema (although it will populate its schema once it’s able to connect).
How do you install the chart? Are you using a local clone or the upstream Helm repository?
Usually the sonarqube Helm chart has a dependency to the bitnami postgresql Helm chart and deploys this for the database.
Your custom values could help to debug what’s going on (:
Thanks for the quick response DefinitelyNotTobi ganncamp
DefinitelyNotTobi I am installing the helm chart through gitops approach using Argocd tool.
You can find the code here: GitHub - cloud-native-toolkit/terraform-gitops-sonarqube at version_upgrade
As you mentioned, Sonarqube Helm chart has a dependency to the bitnami postgresql Helm chart mentioned in Sonarqube helm chart’s requirements.yaml. Attaching my custom values.yaml being passed to helm chart for your reference values.yaml.zip (5.1 KB)
Hmm this is a rather complex approach when i look at this git repo. i could not reproduce your error in a local test with the values you provided, so my guess is that these values are eigher not the once in use in your deployment, or that your argo instance can not handle the dependency notation from the sonarqube chart (they are specified not in the Chart.yaml but in the requirements.yaml). could you validate these claims?
DefinitelyNotTobi Thanks for your inputs. Just wanted to check if my values.yaml is good or if I need to add some more values in values.yaml for postgres service to run. In the previous helm chart version, postgres service was running successfully.
DefinitelyNotTobi Attaching my custom values.yaml for your reference. It would be helpful if you could validate it if it has all parameters required for postgres. values.yaml.zip (5.1 KB)
seems good to me for the dependency. The only condition that needs to be fulfilled in order to also deploy the postgresql chart is postgresql.enabled as stated here.
You can check this for yourself if you just run helm template -f values.yaml sonarqube/sonarqube and check if there is a postgresql sts that gets templated.