Install SonarQube with helm chart 6.0.1+425

I am trying to install SonarQube with Helm in k8s environment, facing two issue with helm chart version 6.0.1+425

  1. could not access SonarQube through ingress, but able to access the home page in SonarQube pod
    image

  2. the liveness probe, readinessProbe, startupProbe could not use custom sonarWebContext path
    Using default "sonarWebContext : / " path was working fine
    But try to use “sonarWebContext: /sonarqube/” was not working, fail at livenessProbe, lead to sonarqube pod keep restarting

within the pod was able to access

Only default sonarWebContext: / is working

Hello @hoho54321

To setup a webcontext in the helm chart, you need to set the following values:

Probes:

  readinessProbe:
    initialDelaySeconds: 120
    periodSeconds: 30
    failureThreshold: 6
    sonarWebContext: /sonarqube/
  livenessProbe:
    initialDelaySeconds: 120
    periodSeconds: 30
    failureThreshold: 6
    sonarWebContext: /sonarqube/
  startupProbe:
    initialDelaySeconds: 60
    periodSeconds: 10
    failureThreshold: 24
    sonarWebContext: /sonarqube/

Ingress:

ingress:
  enabled: true
  hosts:
    - name: mysonarqubeinstance.com
      path: /sonarqube/

Environment variables:

env:
  - name: SONAR_WEB_CONTEXT
    value: /sonarqube

Can you check your configuration again?

2 Likes

Thanks, that is great, able to start SonarQube

need to set the env variable
env:

  • name: SONAR_WEB_CONTEXT
    value: /sonarqube

Did not see the section for env variable in helm chart
Should mention it in GitHub helm chart section?

One more thing, if migrate to enterprise version

change to enterprise would be just fine?
image

Hello @hoho54321,

We have a ticket that aims to simplify the configuration of webcontext in the helm chart. This will be a good time to improve the documentation of webcontext in the helm chart aswell.

Regarding switching from community to enterprise, it is indeed possible by changing the edition in the values from community to enterprise

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