sonarqube
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.
Azure-ready Charts with Containers from marketplace.azurecr.io
This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.
$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo
TL;DR
$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/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 my-repo/sonarqube
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.7.0-debian-11-r0 |
image.digest | SonarQube image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | "" |
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 |
sonarSecurityRealm | Set this to LDAP authenticate first against the external sytem. If the external system is not | "" |
sonarAuthenticatorDowncase | Set to true when connecting to a LDAP server using a case-insensitive setup. | "" |
ldap.url | URL of the LDAP server. If you are using ldaps, you should install the server certificate into the Java truststore | "" |
ldap.bindDn | The username of an LDAP user to connect (or bind) with. Leave this blank for anonymous access to the LDAP directory. | "" |
ldap.bindPassword | The password of the user to connect with. Leave this blank for anonymous access to the LDAP directory. | "" |
ldap.authentication | Possible values: simple, CRAM-MD5, DIGEST-MD5, GSSAPI. See the tutorial on authentication mechanisms (http://java.sun.com/products/jndi/tutorial/ldap/security/auth.html) | simple |
ldap.realm | See Digest-MD5 Authentication, CRAM-MD5 Authentication (http://java.sun.com/products/jndi/tutorial/ldap/security/digest.html) | "" |
ldap.contextFactoryClass | Context factory class. | com.sun.jndi.ldap.LdapCtxFactory |
ldap.StartTLS | Enable use of StartTLS | false |
ldap.followReferrals | Follow referrals or not | true |
ldap.user.baseDn | Distinguished Name (DN) of the root node in LDAP from which to search for users. | "" |
ldap.user.request | LDAP user request. | (&(objectClass=inetOrgPerson)(uid={login})) |
ldap.user.realNameAttribute | in LDAP defining the user’s real name. | cn |
ldap.user.emailAttribute | Attribute in LDAP defining the user’s email. | mail |
ldap.group.baseDn | Distinguished Name (DN) of the root node in LDAP from which to search for groups. | "" |
ldap.group.request | LDAP group request. | (&(objectClass=groupOfUniqueNames)(uniqueMember={dn})) |
ldap.group.idAttribute | Attribute in LDAP defining the group’s real name. | cn |
smtpHost | SMTP server host | "" |
smtpPort | SMTP server port | "" |
smtpUser | SMTP username | "" |
| `smtpPasswor |
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 v1.6.4 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