When installed using Helm charts, SonarQube creates a load balancer and exposes an external IP to connect. We will discover the IP first and connect to the SonarQube Dashboard using the service IP.
Let's perform the following steps to expose SonarQube through a cloud load balancer:
- Get the SonarQube load balancer's external IP:
$ export SONAR_SVC=$(kubectl get svc --namespace sonarqube sonar-sonarqube -o jsonpath='{.status.loadBalancer.ingress[0].hostname}')
$ echo http://$SONAR_SVC:9000
- Open the address in your browser:
- Click on Log in and use admin as both your username and password to log in to the Dashboard:
- Click on the account profile logo on the top right of the screen and select My Account:
- Select the Security tab:
- Change the default admin password and save it by clicking the Change password button:
Since the service port is accessible externally, it is important to change the default credentials of SonarQube.