Skip to content

Runs the latest SonarQube Community Edition version behind an Nginx Ingress on a local Kubernetes cluster with Minikube.

License

Notifications You must be signed in to change notification settings

daniel-meppiel-sonarsource/sonarqube-latest-k8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sonarqube-latest-k8s

Runs latest SonarQube behind Nginx Ingress on Kubernetes. Launch it with one command thanks to Skaffold. The instructions below explain how to access this deployment Ngrok secure HTTPS tunnel.

Requirements

Install Docker, Minikube, Ngrok and Skaffold.

Setup

Edit /k8s/ingress/sq-ingress.yaml and set host key to match your (Ngrok) custom domain.

From the project root folder, run the following commands:

# Start Minikube - set vm=true for MacOS
minikube start --vm=true --disk-size 30GB
# Enable ingress nginx
minikube addons enable ingress
# Edit your etc/hosts file to point DeFROST hosts to Minikube
minikube ip
# Add host 'my.sonarqube.io' to above IP
sudo nano /etc/hosts 
# launch SonarQube deployment with skaffold
skaffold run
# Open ngrok tunnel with your ngrok domain
ngrok http http://{minikube_ip} -region=eu -hostname={your_ngrok_host}

Wait for ce-lts-sonarqube-0 pod to be in Ready status. Check it by running:

kubectl get pods

Access SonarQube after the Pod is in ready status under your_ngrok_host.

Ngrok/No Ingress setup

for a simplified setup without ingress, have a look at the feat/sc/direct-ngrok-no-ingress branch of this project

About

Runs the latest SonarQube Community Edition version behind an Nginx Ingress on a local Kubernetes cluster with Minikube.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •