SonarQube is a leading open source solution for code quality and security analysis for adopting code quality in your CI/CD. It can be installed as a standalone solution from binaries. In this recipe, we will install it on a Kubernetes cluster using Helm charts.
Let's perform the following steps to get SonarQube up and running:
- Update your repositories:
$ helm repo update
- Install SonarQube:
$ helm install stable/sonarqube --name sonar --namespace sonarqube
- Validate that the PostgreSQL and SonarQube pods are ready:
$ kubectl get pods -n sonarqube
NAME READY STATUS RESTARTS AGE
sonar-postgresql-68b88ddc77-l46wc 1/1 Running 0 16m
sonar-sonarqube-995b9cc79-9vzjn 1/1 Running 1 16m
With that, you've learned how to get SonarQube deployed on the Kubernetes cluster.