what are you trying to achieve
Just run Sonarqube on localhost:8080
what have you tried so far to achieve this
Deploying sonarqube using the Helm chart has been successful. I can see the relevant workloads on my cluster i.e. sonarqube-lts-postgresql and sonarqube-lts-sonarqube-lts. When I forward the port 8080 to 9000 as suggested by the script and access 127.0.0.1:8080, the admin/admin login for the Sonarqube gives an authentication failure. There are no server side logs nor anything informative in the GCP logs.
I did not manage to reproduce this. can you write down what exactly you did and maybe test if this is reproducible with something simple like kind/minikube?
Here is what i did:
kind create cluster --name test
helm repo add sonarqube https://SonarSource.github.io/helm-chart-sonarqube
helm repo update
kubectl create namespace sonarqube-lts
helm upgrade --install -n sonarqube-lts sonarqube-lts sonarqube/sonarqube-lts
# wait until sonarqube started up
kubectl port-forward svc/sonarqube-lts-sonarqube-lts -n sonarqube-lts 8080:9000
navigate to localhost:8080, login as admin/admin and be prompted to change the password.
btw: you can always change the password in the database as documented here, so maybe this is also an option for you.
Hi Tobias,
Thank you for responding!
I had resolved the issue by logging into the sonar DB and resetting the admin user to have the admin password again by running this query from the documentation:
update users set crypted_password='100000$t2h8AtNs1AlCHuLobDjHQTn9XppwTIx88UjqUm4s8RsfTuXQHSd/fpFexAnewwPsO6jGFQUv/24DnO55hY6Xew==', salt='k9x9eN127/3e/hf38iNiKwVfaVk=', hash_method='PBKDF2', reset_password='true', user_local='true' where login='admin';
As to how we got to this point where the admin password got changed is beyond us because this was our first time installing Sonarqube. For now everything is working.