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_PASSCODEExample: installing on OpenShift
The following command enables OpenShift.
helm repo add sonarqube https://SonarSource.github.io/helm-chart-sonarqube
helm repo update
kubectl create namespace sonarqube
export MONITORING_PASSCODE="yourPasscode"
export EDITION="developer" # Choose your edition
export JDBC_URL="jdbc:postgresql://myPostgres/myDatabase"
export JDBC_USERNAME="jdbc-username"
export JDBC_PASSWORD_SECRET_NAME="jdbc-secret"
export JDBC_PASSWORD_SECRET_KEY="jdbc-password"
helm upgrade --install -n sonarqube sonarqube sonarqube/sonarqube \
--set edition=$EDITION \
--set OpenShift.enabled=true \
--set monitoringPasscode=$MONITORING_PASSCODE \
--set jdbcOverwrite.jdbcUrl=$JDBC_URL \
--set jdbcOverwrite.jdbcUsername=$JDBC_USERNAME \
--set jdbcOverwrite.jdbcSecretName=$JDBC_PASSWORD_SECRET_NAME \
--set jdbcOverwrite.jdbcSecretPasswordKey=$JDBC_PASSWORD_SECRET_KEYSetting up an external database for testing
The chart requires an external database. If you want to perform a quick test, install a PostgreSQL chart on your cluster. See this setup example for guidance. For more information and settings, refer to the chart documentation.
After installing the database, set the following values accordingly: jdbcOverwrite.jdbcUrl, jdbcOverwrite.jdbcUsername, jdbcOverwrite.jdbcSecretName, and jdbcOverwrite.jdbcSecretPasswordKey.
Related pages
Installing Data Center Edition on Kubernetes: Installing on Kubernetes or Openshift
Related online learning
Last updated
Was this helpful?

