Start Free
10.7 | Server installation and setup | Deploying on Kubernetes | Deploying SonarQube Server | Installing Helm chart

Installing SonarQube Helm chart

On this page

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 Helm chart( If you want to deploy the SonarQube LTA version, you should install the LTA Helm chart, see the Helm chart documentation):

helm repo add sonarqube https://SonarSource.github.io/helm-chart-sonarqube
helm repo update
kubectl create namespace sonarqube # If you dont have permissions to create the namespace, skip this step and replace all -n with an existing namespace name.
helm upgrade --install -n sonarqube sonarqube sonarqube/sonarqube

Example: installing on Openshift

The command below:

  • Enables OpenShift.
  • Deploys a PostgreSQL database for test purposes.

without updating the provided default Helm chart.

helm repo add sonarqube https://SonarSource.github.io/helm-chart-sonarqube
helm repo update
kubectl create namespace sonarqube 
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

Was this page helpful?

© 2008-2024 SonarSource SA. All rights reserved. SONAR, SONARSOURCE, SONARQUBE, and CLEAN AS YOU CODE are trademarks of SonarSource SA.

Creative Commons License