Skip to content

Commit feb0a0d

Browse files
authored
Application Quality SonarQube access using ApisixRoute
1 parent ddf0c1f commit feb0a0d

3 files changed

Lines changed: 26 additions & 29 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
apiVersion: apisix.apache.org/v2
2+
kind: ApisixRoute
3+
metadata:
4+
name: application-quality-sonarqube-route
5+
namespace: application-quality-sonarqube
6+
spec:
7+
ingressClassName: apisix
8+
http:
9+
- name: application-quality-sonarqube-route
10+
match:
11+
hosts:
12+
- application-quality.develop.eoepca.org
13+
paths:
14+
- /sonarqube
15+
- /sonarqube/*
16+
backends:
17+
- serviceName: application-quality-sonarqube-sonarqube
18+
servicePort: 9000
19+
plugins:
20+
- name: cors
21+
enable: true

argocd/eoepca/application-quality/sonarqube/application-quality-sonarqube-values.yaml

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
11
# https://github.com/SonarSource/helm-chart-sonarqube/blob/master/charts/sonarqube/values.yaml
2-
# edition: community
32
community:
43
enabled: true
54

6-
# Resource tuning for the EOEPCA environment
7-
resources:
8-
requests:
9-
cpu: 500m
10-
memory: 2Gi
11-
limits:
12-
cpu: 2000m
13-
memory: 4Gi
14-
155
postgresql:
166
enabled: false
177

@@ -43,25 +33,10 @@ sonarProperties:
4333
# monitoringPasscodeSecretName: "pass-secret-name"
4434
# monitoringPasscodeSecretKey: "pass-key"
4535

36+
# Use ApisixRoute instead of a traditional Ingress
37+
# See application-quality-sonarqube-apisixroute.yaml
4638
ingress:
47-
enabled: true
48-
ingressClassName: apisix
49-
pathType: Prefix
50-
path: /sonarqube
51-
hosts:
52-
- name: application-quality.develop.eoepca.org
53-
path: /sonarqube
54-
annotations:
55-
kubernetes.io/ingress.class: apisix
56-
cert-manager.io/cluster-issuer: letsencrypt-http01-apisix
57-
k8s.apisix.apache.org/enable-cors: "true"
58-
k8s.apisix.apache.org/http-to-https: "true"
59-
k8s.apisix.apache.org/enable-websocket: "true"
60-
k8s.apisix.apache.org/rewrite-target: /sonarqube
61-
tls:
62-
- secretName: application-quality-sonarqube-tls
63-
hosts:
64-
- application-quality.develop.eoepca.org
39+
enabled: false
6540

6641
# Resource tuning for the EOEPCA environment
6742
resources:
@@ -79,4 +54,4 @@ jdbcOverwrite:
7954
jdbcUrl: "jdbc:postgresql://application-quality-sonarqube-db:5432/sonar"
8055
jdbcUsername: "sonarUser"
8156
jdbcSecretName: "application-quality-sonarqube-db-secrets"
82-
jdbcSecretPasswordKey: "password"
57+
jdbcSecretPasswordKey: "password"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11

22
resources:
3+
- application-quality-sonarqube-apisixroute.yaml
34
- ss-application-quality-sonarqube-db-secrets.yaml

0 commit comments

Comments
 (0)