SonarQube Community Build | Server installation and setup | Deploying on Kubernetes | Installing Helm chart
Installing Helm chart for SonarQube Community Build
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 Community Build 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 community.enabled=true,monitoringPasscode=$MONITORING_PASSCODE
- To specify the version to be installed, use the
community.buildNumber
parameter. By default, the latest version is installed. - The parameters after
--set
can also be defined in the values.yaml file.
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
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 monitoringPasscode=$MONITORING_PASSCODE
Was this page helpful?