Installing from Google Cloud Platform

SonarQube Data Center Edition (DCE) can be deployed on Kubernetes through the Google Marketplace.

Data Center Edition can be deployed on Kubernetes through the Google Marketplace:

  • Either with basic features only, by using its Click to Deploy feature.

  • Or with advanced features by using its Deploy via command line feature.

Basic installation

With the basic installation, you cannot benefit from various features such as autoscaling or deploying with Istio.

Prerequisites

Make sure that kubectl is configured in your environment and that your cluster has Google’s Application CustomResourceDefinition installed. That definition can be obtained from this file.

Pre-installation steps

  • Set the value of your Application authentication JWT Token. See Defining a JWT token.

  • If necessary, create the target namespace you want to install Data Center Edition into.

Installing using Click to Deploy

  1. Go to the Data Center Edition page on the Google Cloud Platform.

  2. Click Get started and follow the instructions.

  3. In the Deploy page, fill in the fields in the Click to Deploy on GKE tab: see Installation parameters below.

  4. At the bottom of the tab, click Deploy.

Installing manually

For manual installation or development purposes, SonarQube Server can be configured using the mpdev CLI tool provided by Google. See Installation parameters below for the supported parameters with key.

Deleting the installation

To delete the installation of SonarQube Server from your cluster:

  1. Delete the created Application resource.

  2. Delete the PersistentVolumeClaims related to the search nodes and database (if applicable).

Installation parameters

Name
Description
Key
Type

Existing Kubernetes cluster

Kubernetes cluster in which the application will be deployed.

Namespace

Target namespace to install Data Center Edition into (The namespace must exist already, it will not be created automatically.).

namespace

string

App instance name

Name of the application in your Kubernetes cluster

name

string

Application authentication JWT Token

The HS256 key encoded with base64: see Pre-installation steps above.

ApplicationNode.jwtSecret

string

Connection to a database - Recommended

If enabled, SonarQube Server will be connected to your PostgreSQL database. The connection parameters JDBC URL, username, and password will be used. Make sure that the Embedded database option is disabled.

jdbcOverwrite.enable

boolean

JDBC URL

The JDBC URL used to connect to the database.

jdbcOverwrite.jdbcUrl

string

JDB Username

The username used to connect to the database.

jdbcOverwrite.jdbcUsername

string

JDBC Password

The password used to connect to the database.

jdbcOverwrite.jdbcPassword

string

Application nodes replicas

The number of replicas for the Application Nodes

ApplicationNodes.replicaCount

integer

Search nodes replicas

The number of replicas for the Search Nodes

searchNodes.replicaCount

integer

Enable initSysctl privileged initContainer to setup elasticearch kernel parameters

This should be disabled and set up by your cluster administrator. Refer to this documentation for more details.

initSysctl.enabled

boolean

Enable initFs root initContainer to setup filesystem parameters

This is generally not required on a Google Kubernetes cluster. Refer to this documentation for more details.

initFs.enabled

boolean

GCP Marketplace application

This flag must be enabled in the context of the installation from GCP.

gcp_marketplace

boolean

Embedded database - For testing purposes only

Not recommended for production: a test PostgreSQL database will be installed.

postgresql.enabled

boolean

Advanced installation

Use the advanced installation if you want to benefit from various features such as autoscaling or deploying with Istio.

Proceed as follows:

  1. Customize the Helm chart. See Customizing the Helm chart.

  2. Go to the Data Center Edition page on the Google Cloud Platform.

  3. In the Deploy page of your Google Cloud Platform, select the Deploy via command line tab.

  4. Follow the instructions:

    1. Clone the repo.

    2. Use the command described in Installing the DCE Helm chart.

Last updated

Was this helpful?