Installing Data Center Edition on Kubernetes from the Google Cloud Platform
On this page
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 Generating a JWT token.
- If necessary, create the target namespace you want to install Data Center Edition into.
Installing using Click to Deploy
- Go to the Data Center Edition page on the Google Cloud Platform.
- Click Get started and follow the instructions.
- In the Deploy page, fill in the fields in the Click to Deploy on GKE tab: see Installation parameters below.
- 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:
- Delete the created Application resource.
- 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:
- Customize the Helm chart. See Customizing the Helm chart.
- Go to the Data Center Edition page on the Google Cloud Platform.
- In the Deploy page of your Google Cloud Platform, select the Deploy via command line tab.
- Follow the instructions:
- Clone the repo.
- Use the command described in Installing the Helm chart.
Related pages
Was this page helpful?