Installing Helm chart

How to install the Helm chart for SonarQube Server’s Developer or Enterprise Edition.

Once you have customized the Helm chart, you can install it. You can also overwrite Helm chart parameters directly in the installation command (see OpenShift example below).

General installation command

Use the following command to install the latest SonarQube Server Helm chart:

helm repo add sonarqube https://SonarSource.github.io/helm-chart-sonarqube
helm repo update
kubectl create namespace sonarqube
export MONITORING_PASSCODE="yourPasscode"
helm upgrade --install -n sonarqube sonarqube sonarqube/sonarqube --set edition=developer,monitoringPasscode=$MONITORING_PASSCODE
  • You must explicitly set the edition parameter to either developer or enterprise.

  • The parameters after --set can also be defined in the values.yaml file. See Customizing Helm chart.

  • If you want to deploy the SonarQube Server LTA version, you should install the LTA Helm chart, see the Helm chart documentation.

  • The monitoring Passcode is required for the helm upgrade operation. See Setting up monitoring for a better way to store the monitoring passcode used to authenticate to the Web API.

Example: installing on OpenShift

The command below enables OpenShift and deploys a PostgreSQL database for test purposes.

helm repo add sonarqube https://SonarSource.github.io/helm-chart-sonarqube
helm repo update
kubectl create namespace sonarqube 
export MONITORING_PASSCODE="yourPasscode"
helm upgrade --install -n sonarqube sonarqube sonarqube/sonarqube \
  --set OpenShift.enabled=true \
  --set postgresql.securityContext.enabled=false \
  --set OpenShift.createSCC=false \
  --set postgresql.containerSecurityContext.enabled=false \
  --set edition=developer \
  --set monitoringPasscode=$MONITORING_PASSCODE

Last updated

Was this helpful?