Initial k8s deployment starts and stops immediately

Hi,

Could you please help us with the Sonarqube Kubernetes deployment.
The container starts and stops instantly. I see no errors in the log.
Please check the attachment for our logs in DEBUG mode.
sonar.zip (92.7 KB)

Environment:

  • which versions are you using: sonarqube:8.9-community
  • what are you trying to achieve: sonarqube running in kubernetes cluster and connected to MS SQL server
  • what have you tried so far to achieve this: initial helm deployment considering Deploy SonarQube on Kubernetes | SonarQube Docs

Hi @konstantin and welcome to the community :wave:

thank you for providing the logs.

this indicates that the SQ pod is stopped by the kube scheduler as it was probably marked as a failed deployment due to not being ready in time. can you try to increase the failureThreshold and/or increase the initial limits to speed up the startup process and retry?

1 Like

Hi @Tobias_Trabelsi and thank you so much for your advice.
It definitely helped:

2021.07.22 00:31:05 INFO ce[o.s.ce.app.CeServer] Compute Engine is operational
2021.07.22 00:31:06 INFO app[o.s.a.SchedulerImpl] Process[ce] is up
2021.07.22 00:31:06 INFO app[o.s.a.SchedulerImpl] SonarQube is up

I would prefer to have it somewhere in k8s documentation if it is not done yet.
Thanks a lot! And have a great day.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.