In order to run the project, you need to configure another repository containing your application, a Dockerfile, the .gitlab-ci.yml and the sonar-project.properties files.
An example can be found at https://github.com/gionut/gitlab-pipeline-test-repo.
You also need to configure an access token, which you will provide to the helmfile sync command as follows:
./helmfile sync --set repo_token="<REPO_ACCESS_TOKEN"The helmfile sync command will install all helmcharts and run the corresponding jobs. After the command execution completes, your minikube node should have the following kubernetes services, which you need to expose in order to access them via user browser:
kubectl -n gitlab port-forward svc/gitlab-chart-nginx-ingress-controller 8443:443
kubectl -n gitlab port-forward svc/harbor 8080:443
kubectl -n gitlab port-forward svc/sonarqube-sonarqube 9000:9000To obtain Gitlab password
# Username is root
kubectl -n gitlab get secret gitlab-chart-gitlab-initial-root-password -o jsonpath="{.data.password}" | base64 --decodeSonarqube: admin admin12345
Harbor: admin Harbor12345
Check the logs of all the jobs for errors:
kubectl -n gitlab get pods | grep jobFor the job corresponding to the harbor-chart:
kubectl -n gitlab get pods | grep robotCheck that Gitlab contains the following CI/CD variables: