ci: add sonarqube config to cluster
This commit is contained in:
parent
3fa0dcf973
commit
fb8441c436
4 changed files with 45 additions and 0 deletions
|
|
@ -4,3 +4,4 @@ resources:
|
|||
- monitoring/
|
||||
- longhorn/
|
||||
- gitea/
|
||||
- sonarqube
|
||||
|
|
|
|||
32
infrastructure/sonarqube/helmrelease.yaml
Normal file
32
infrastructure/sonarqube/helmrelease.yaml
Normal 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
|
||||
8
infrastructure/sonarqube/helmrepository.yaml
Normal file
8
infrastructure/sonarqube/helmrepository.yaml
Normal 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
|
||||
4
infrastructure/sonarqube/namespace.yaml
Normal file
4
infrastructure/sonarqube/namespace.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: sonarqube
|
||||
Loading…
Add table
Add a link
Reference in a new issue