Merge pull request #291 from 3dwardch3ng/app/sonarqube
add app sonarcube
This commit is contained in:
@@ -13,5 +13,6 @@ resources:
|
|||||||
- ./qbittorrent/qbittorrent.yaml
|
- ./qbittorrent/qbittorrent.yaml
|
||||||
- ./redis/redis.yaml
|
- ./redis/redis.yaml
|
||||||
- ./snippet-box/snippet-box.yaml
|
- ./snippet-box/snippet-box.yaml
|
||||||
|
- ./sonarqube/sonarqube.yaml
|
||||||
- ./uptime-kuma/uptime-kuma.yaml
|
- ./uptime-kuma/uptime-kuma.yaml
|
||||||
- ./weave-gitops/weave-gitops.yaml
|
- ./weave-gitops/weave-gitops.yaml
|
||||||
21
kubernetes/apps/sonarqube/app/ingress.yaml
Normal file
21
kubernetes/apps/sonarqube/app/ingress.yaml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: sonarqube-ingress
|
||||||
|
namespace: sonarqube
|
||||||
|
annotations:
|
||||||
|
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||||
|
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||||
|
spec:
|
||||||
|
ingressClassName: nginx
|
||||||
|
rules:
|
||||||
|
- host: "sonarqube.cluster.edward.sydney"
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- pathType: Prefix
|
||||||
|
path: "/"
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: sonarqube
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
37
kubernetes/apps/sonarqube/app/release.yaml
Normal file
37
kubernetes/apps/sonarqube/app/release.yaml
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: sonarqube
|
||||||
|
namespace: sonarqube
|
||||||
|
spec:
|
||||||
|
releaseName: sonarqube
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: sonarqube
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: bitnami
|
||||||
|
namespace: flux-system
|
||||||
|
interval: 1h
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: 3
|
||||||
|
values:
|
||||||
|
smtpHost: ${smtp_host}
|
||||||
|
smtpPort: ${smtp_port}
|
||||||
|
smtpUser: ${smtp_user}
|
||||||
|
smtpPassword: ${smtp_password}
|
||||||
|
smtpProtocol: ${smtp_protocol}
|
||||||
|
persistence:
|
||||||
|
enabled: true
|
||||||
|
storageClass: "local-path"
|
||||||
|
size: "32Gi"
|
||||||
|
existingClaim: ""
|
||||||
|
postgresql:
|
||||||
|
enabled: false
|
||||||
|
externalDatabase:
|
||||||
|
host: ${db_host}
|
||||||
|
user: ${db_user}
|
||||||
|
password: ${db_password}
|
||||||
|
database: ${db_name}
|
||||||
|
port: ${db_port}
|
||||||
46
kubernetes/apps/sonarqube/sonarqube.yaml
Normal file
46
kubernetes/apps/sonarqube/sonarqube.yaml
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: sonarqube-secrets
|
||||||
|
namespace: sonarqube
|
||||||
|
spec:
|
||||||
|
interval: 10m
|
||||||
|
timeout: 1m30s
|
||||||
|
retryInterval: 30s
|
||||||
|
targetNamespace: redis
|
||||||
|
path: ./sonarqube
|
||||||
|
prune: true
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
namespace: flux-system
|
||||||
|
name: home-cluster-ops-secrets
|
||||||
|
dependsOn:
|
||||||
|
- name: repositories
|
||||||
|
namespace: flux-system
|
||||||
|
decryption:
|
||||||
|
provider: sops
|
||||||
|
secretRef:
|
||||||
|
name: sonarqube-sops-age
|
||||||
|
---
|
||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: sonarqube
|
||||||
|
namespace: sonarqube
|
||||||
|
spec:
|
||||||
|
interval: 10m
|
||||||
|
timeout: 1m30s
|
||||||
|
retryInterval: 30s
|
||||||
|
path: ./kubernetes/apps/sonarqube/app
|
||||||
|
prune: true
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
namespace: flux-system
|
||||||
|
name: flux-system
|
||||||
|
dependsOn:
|
||||||
|
- name: sonarqube-secrets
|
||||||
|
namespace: redis
|
||||||
|
postBuild:
|
||||||
|
substituteFrom:
|
||||||
|
- kind: Secret
|
||||||
|
name: sonarqube-secrets
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: sonarqube
|
||||||
Reference in New Issue
Block a user