ci: add sonarqube config to cluster

This commit is contained in:
Patryk Hegenberg 2025-05-07 14:03:26 +02:00
parent 3fa0dcf973
commit fb8441c436
4 changed files with 45 additions and 0 deletions

View file

@ -4,3 +4,4 @@ resources:
- monitoring/
- longhorn/
- gitea/
- sonarqube

View file

@ -0,0 +1,32 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: sonarqube
namespace: sonarqube
spec:
interval: 10m
chart:
spec:
chart: sonarqube
version: "2025.2.0"
sourceRef:
kind: HelmRepository
name: sonarqube
namespace: flux-system
values:
persistence:
enabled: true
storageClass: longhorn
size: 10Gi
postgresql:
enabled: true
persistence:
enabled: true
storageClass: longhorn
size: 8Gi
ingress:
enabled: true
hosts:
- name: sonarqube.local
path: /
ingressClassName: traefik

View file

@ -0,0 +1,8 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: sonarqube
namespace: flux-system
spec:
url: https://SonarSource.github.io/helm-chart-sonarqube
interval: 1h

View file

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: sonarqube