diff --git a/content/posts/20-a-beautiful-gitops-day-10/index.md b/content/posts/20-a-beautiful-gitops-day-10/index.md index c62ad32..b3f2ea8 100644 --- a/content/posts/20-a-beautiful-gitops-day-10/index.md +++ b/content/posts/20-a-beautiful-gitops-day-10/index.md @@ -21,86 +21,6 @@ SonarQube has its dedicated Helm chart which is perfect for us. However, it's th Create dedicated database for SonarQube same as usual, then we can use flux for deployment. -{{< highlight host="demo-kube-flux" file="clusters/demo/sonarqube/deploy-sonarqube.yaml" >}} - -```yaml -apiVersion: apps/v1 -kind: Namespace -metadata: - name: sonarqube ---- -apiVersion: source.toolkit.fluxcd.io/v1beta2 -kind: HelmRepository -metadata: - name: sonarqube - namespace: sonarqube -spec: - interval: 1h0m0s - url: https://SonarSource.github.io/helm-chart-sonarqube ---- -apiVersion: helm.toolkit.fluxcd.io/v2beta1 -kind: HelmRelease -metadata: - name: sonarqube - namespace: sonarqube -spec: - chart: - spec: - chart: sonarqube - reconcileStrategy: ChartVersion - sourceRef: - kind: HelmRepository - name: sonarqube - version: ">=10.0.0" - interval: 1m - releaseName: sonarqube - targetNamespace: sonarqube - values: - resources: - limits: - cpu: 1000m - memory: 2Gi - requests: - cpu: 500m - memory: 2Gi - - prometheusMonitoring: - podMonitor: - enabled: true - namespace: sonarqube - - monitoringPasscode: null - monitoringPasscodeSecretName: sonarqube-secret - monitoringPasscodeSecretKey: monitoring-passcode - - jdbcOverwrite: - enable: true - jdbcUrl: jdbc:postgresql://postgresql-primary.postgres/sonarqube - jdbcUsername: sonarqube - jdbcSecretName: sonarqube-secret - jdbcSecretPasswordKey: db-password - - postgresql: - enabled: false ---- -apiVersion: traefik.io/v1alpha1 -kind: IngressRoute -metadata: - name: sonarqube - namespace: sonarqube -spec: - entryPoints: - - websecure - routes: - - match: Host(`sonarqube.kube.rocks`) - kind: Rule - services: - - name: sonarqube-sonarqube - port: http -``` - -{{< /highlight >}} - Here are the secrets to adapt to your needs: {{< highlight host="demo-kube-flux" file="clusters/demo/sonarqube/secret-sonarqube.yaml" >}}