sonarqube

by joaquinito2051

Helm chartv1.6.4App 9.7.0

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.

Overview of SonarQube

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

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""

Common parameters

NameDescriptionValue
kubeVersionOverride Kubernetes version""
nameOverrideString to partially override common.names.fullname""
fullnameOverrideString to fully override common.names.fullname""
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
clusterDomainKubernetes cluster domain namecluster.local
extraDeployArray of extra objects to deploy with the release[]
diagnosticMode.enabledEnable diagnostic mode (all probes will be disabled and the command will be overridden)false
diagnosticMode.commandCommand to override all containers in the deployment["sleep"]
diagnosticMode.argsArgs to override all containers in the deployment["infinity"]

SonarQube Image parameters

NameDescriptionValue
image.registrySonarQube image registrydocker.io
image.repositorySonarQube image repositorybitnami/sonarqube
image.tagSonarQube image tag (immutable tags are recommended)9.7.0-debian-11-r0
image.digestSonarQube image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag""
image.pullPolicySonarQube image pull policyIfNotPresent
image.pullSecretsSonarQube image pull secrets[]
image.debugEnable SonarQube image debug modefalse

SonarQube Configuration parameters

NameDescriptionValue
sonarqubeUsernameSonarQube usernameuser
sonarqubePasswordSonarQube user password""
existingSecretName of existing secret containing SonarQube credentials""
sonarqubeEmailSonarQube user email[email protected]
minHeapSizeMinimum heap size for SonarQube1024m
maxHeapSizeMaximum heap size for SonarQube2048m
startTimeoutTimeout for the application to start in seconds150
extraPropertiesList of extra properties to be set in the sonar.properties file (key=value format)[]
sonarqubeSkipInstallSkip wizard installationfalse
sonarSecurityRealmSet this to LDAP authenticate first against the external sytem. If the external system is not""
sonarAuthenticatorDowncaseSet to true when connecting to a LDAP server using a case-insensitive setup.""
ldap.urlURL of the LDAP server. If you are using ldaps, you should install the server certificate into the Java truststore""
ldap.bindDnThe username of an LDAP user to connect (or bind) with. Leave this blank for anonymous access to the LDAP directory.""
ldap.bindPasswordThe password of the user to connect with. Leave this blank for anonymous access to the LDAP directory.""
ldap.authenticationPossible 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.realmSee Digest-MD5 Authentication, CRAM-MD5 Authentication (http://java.sun.com/products/jndi/tutorial/ldap/security/digest.html)""
ldap.contextFactoryClassContext factory class.com.sun.jndi.ldap.LdapCtxFactory
ldap.StartTLSEnable use of StartTLSfalse
ldap.followReferralsFollow referrals or nottrue
ldap.user.baseDnDistinguished Name (DN) of the root node in LDAP from which to search for users.""
ldap.user.requestLDAP user request.(&(objectClass=inetOrgPerson)(uid={login}))
ldap.user.realNameAttributein LDAP defining the user’s real name.cn
ldap.user.emailAttributeAttribute in LDAP defining the user’s email.mail
ldap.group.baseDnDistinguished Name (DN) of the root node in LDAP from which to search for groups.""
ldap.group.requestLDAP group request.(&(objectClass=groupOfUniqueNames)(uniqueMember={dn}))
ldap.group.idAttributeAttribute in LDAP defining the group’s real name.cn
smtpHostSMTP server host""
smtpPortSMTP server port""
smtpUserSMTP 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartsonarqube is pinned at v1.6.4 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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