Hello SonarSource Support Team,
We plan to upgrade the license status from SonarQube CE to Enterprise Edition in Kubernetes using the official Helm chart.
Our PostgreSQL database is managed by the CloudNativePG (CNPG) operator in K8s as multiple replicas of a single cluster.
Current architecture:
-
SonarQube deployed via official Helm chart
-
PostgreSQL deployed via CloudNativePG operator
-
SonarQube connects to PostgreSQL using a stable Kubernetes Service DNS name
CNPG may perform failover, pod rescheduling, rolling updates, or primary switchovers internally
We would like to understand which scenarios can invalidate the SonarQube license in this environment.
Specifically:
- Will the icense remain valid if:
-
PostgreSQL pods are recreated
-
CNPG performs automatic failover
-
the primary PostgreSQL instance changes
-
K8s nodes change
-
PostgreSQL pod IP addresses change
-
Is the license tied only to the JDBC connection string / database identity, or can internal PostgreSQL topology changes also affect it?
-
If the k8s Service DNS name and JDBC URL remain unchanged, can we safely:
-
upgrade CNPG
-
restart PostgreSQL pods
-
perform rolling updates
-
migrate PostgreSQL storage volumes
-
Are there any known limitations or best practices for running SonarQube Enterprise Edition with CloudNativePG in K8s?
-
Would restoring the same PostgreSQL data into a newly created CNPG cluster with a different K8s Service name invalidate the license?
We want to ensure that routine K8s and CNPG operations will not unexpectedly invalidate the license in production.
Thank you in advance for clarification.