sonarqube
by Helm
SonarQube is an open source quality management platform that analyzes and measures code's technical quality. It enables developers to detect code issues, vulnerabilities, and bugs in early stages.
About this chart
SonarQube packaged by Bitnami
SonarQube is an open source quality management platform that analyzes and measures code's technical quality. It enables developers to detect code issues, vulnerabilities, and bugs in early stages.
Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.
TL;DR
$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/sonarqube
Introduction
This chart bootstraps an SonarQube cluster on a Kubernetes cluster using the Helm package manager.
Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.
Prerequisites
- Kubernetes 1.19+
- Helm 3.2.0+
- PV provisioner support in the underlying infrastructure
- ReadWriteMany volumes for deployment scaling
Installing the Chart
To install the chart with the release name my-release:
$ helm install my-release bitnami/sonarqubes
The command deploys SonarQube on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall/delete the my-release deployment:
$ helm delete my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Parameters
Global parameters
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
Common parameters
| Name | Description | Value |
|---|---|---|
kubeVersion | Override Kubernetes version | "" |
nameOverride | String to partially override common.names.fullname | "" |
fullnameOverride | String to fully override common.names.fullname | "" |
commonLabels | Labels to add to all deployed objects | {} |
commonAnnotations | Annotations to add to all deployed objects | {} |
clusterDomain | Kubernetes cluster domain name | cluster.local |
extraDeploy | Array of extra objects to deploy with the release | [] |
diagnosticMode.enabled | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | false |
diagnosticMode.command | Command to override all containers in the deployment | ["sleep"] |
diagnosticMode.args | Args to override all containers in the deployment | ["infinity"] |
SonarQube Image parameters
| Name | Description | Value |
|---|---|---|
image.registry | SonarQube image registry | docker.io |
image.repository | SonarQube image repository | bitnami/sonarqube |
image.tag | SonarQube image tag (immutable tags are recommended) | 9.2.4-debian-10-r21 |
image.pullPolicy | SonarQube image pull policy | IfNotPresent |
image.pullSecrets | SonarQube image pull secrets | [] |
image.debug | Enable SonarQube image debug mode | false |
SonarQube Configuration parameters
| Name | Description | Value |
|---|---|---|
sonarqubeUsername | SonarQube username | user |
sonarqubePassword | SonarQube user password | "" |
existingSecret | Name of existing secret containing SonarQube credentials | "" |
sonarqubeEmail | SonarQube user email | [email protected] |
minHeapSize | Minimum heap size for SonarQube | 1024m |
maxHeapSize | Maximum heap size for SonarQube | 2048m |
startTimeout | Timeout for the application to start in seconds | 150 |
extraProperties | List of extra properties to be set in the sonar.properties file (key=value format) | [] |
sonarqubeSkipInstall | Skip wizard installation | false |
smtpHost | SMTP server host | "" |
smtpPort | SMTP server port | "" |
smtpUser | SMTP username | "" |
smtpPassword | SMTP user password | "" |
smtpProtocol | SMTP protocol | "" |
smtpExistingSecret | The name of an existing secret with SMTP credentials | "" |
command | Override default container command (useful when using custom images) | [] |
args | Override default container args (useful when using custom images) | [] |
extraEnvVars | Array with extra environment variables to add to SonarQube nodes | [] |
extraEnvVarsCM | Name of existing ConfigMap containing extra env vars for SonarQube nodes | "" |
extraEnvVarsSecret | Name of existing Secret containing extra env vars for SonarQube nodes | "" |
SonarQube deployment parameters
| Name | Description | Value |
|---|---|---|
replicaCount | Number of SonarQube replicas to deploy | 1 |
containerPorts.http | SonarQube HTTP container port | 9000 |
containerPorts.elastic | SonarQube Elasticsearch container port | 9001 |
livenessProbe.enabled | Enable livenessProbe on SonarQube containers | true |
livenessProbe.initialDelaySeconds | Initial delay seconds for livenessProbe | 100 |
livenessProbe.periodSeconds | Period seconds for livenessProbe | 10 |
livenessProbe.timeoutSeconds | Timeout seconds for livenessProbe | 5 |
livenessProbe.failureThreshold | Failure threshold for livenessProbe | 6 |
livenessProbe.successThreshold | Success threshold for livenessProbe | 1 |
readinessProbe.enabled | Enable readinessProbe on SonarQube containers | true |
readinessProbe.initialDelaySeconds | Initial delay seconds for readinessProbe | 100 |
readinessProbe.periodSeconds | Period seconds for readinessProbe | 10 |
readinessProbe.timeoutSeconds | Timeout seconds for readinessProbe | 5 |
readinessProbe.failureThreshold | Failure threshold for readinessProbe | 6 |
readinessProbe.successThreshold | Success threshold for readinessProbe | 1 |
startupProbe.enabled | Enable startupProbe on SonarQube containers | false |
startupProbe.initialDelaySeconds | Initial delay seconds for startupProbe | 30 |
startupProbe.periodSeconds | Period seconds for startupProbe | 10 |
startupProbe.timeoutSeconds | Timeout seconds for startupProbe | 1 |
startupProbe.failureThreshold | Failure threshold for startupProbe | 15 |
startupProbe.successThreshold | Success threshold for startupProbe | 1 |
customLivenessProbe | Custom livenessProbe that overrides the default one | {} |
customReadinessProbe | Custom readinessProbe that overrides the default one | {} |
customStartupProbe | Custom startupProbe that overrides the default one | {} |
resources.limits | The resources limits for the SonarQube containers | {} |
resources.requests | The requested resources for the SonarQube containers | {} |
podSecurityContext.enabled | Enabled SonarQube pods' Security Context | true |
podSecurityContext.fsGroup | Set SonarQube pod's Security Context fsGroup | 1001 |
containerSecurityContext.enabled | Enabled SonarQube containers' Security Context | true |
containerSecurityContext.runAsUser | Set SonarQube containers' Security Context runAsUser | 1001 |
containerSecurityContext.runAsNonRoot | Set SonarQube containers' Security Context runAsNonRoot | true |
hostAliases | SonarQube pods host aliases | [] |
podLabels | Extra labels for SonarQube pods | {} |
podAnnotations | Annotations for SonarQube pods | {} |
podAffinityPreset | Pod affinity preset. Ignored if affinity is set. Allowed values: soft or hard | "" |
podAntiAffinityPreset | Pod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hard | soft |
nodeAffinityPreset.type | Node affinity preset type. Ignored if affinity is set. Allowed values: soft or hard | "" |
nodeAffinityPreset.key | Node label key to match. Ignored if affinity is set | "" |
nodeAffinityPreset.values | No |
Deploy sonarqube with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has sonarqube on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartsonarqube is pinned at v9.3.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply