Must-share information (formatted with Markdown):
- which versions are you using :
SonarQube Version 9.7
kubernetes version 1.26
command tool : Helm
Helm version : 3.11.1
- how is SonarQube deployed: (Helm)
- what are you trying to achieve(to deploy the sonarqube 9.7 version in staging environment through helm)
- what have you tried so far to achieve this :
1.we followed the helm deployment process as mentioned in the helm chart repository(helm-chart-sonarqube/charts/sonarqube at master · SonarSource/helm-chart-sonarqube · GitHub)
- we tried deploying other versions such as 9.9 also using helm charts but still getting the same error.
Errors:
init containers are not starting such as initSysctl,initFs,prometheusExporter and getting below errors:
-
Failed to load logs: previous terminated container “init-sysctl” in pod “sonarqube-sonarqube-0” not found
Reason: BadRequest (400) -
for wait-for-db container
/bin/bash: connect: Connection refused
/bin/bash: line 1: /dev/tcp/sonarqube-postgresql/5432: Connection refused -
for init-fs container
chown: /opt/sonarqube/logs: Operation not permitted
chown: /opt/sonarqube/temp: Operation not permitted
chown: /opt/sonarqube/extensions: Operation not permitted
chown: /opt/sonarqube/data: Operation not permitted
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!