From f78d7917300ea6744b3d0ba6e4f4f255aafe9ac2 Mon Sep 17 00:00:00 2001 From: Adrien Beaudouin Date: Sun, 24 Sep 2023 17:24:16 +0200 Subject: [PATCH] wtf --- .../20-a-beautiful-gitops-day-10/index.md | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) 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 b3f2ea8..0bc6f9d 100644 --- a/content/posts/20-a-beautiful-gitops-day-10/index.md +++ b/content/posts/20-a-beautiful-gitops-day-10/index.md @@ -21,26 +21,26 @@ 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. -Here are the secrets to adapt to your needs: - -{{< highlight host="demo-kube-flux" file="clusters/demo/sonarqube/secret-sonarqube.yaml" >}} +{{< highlight host="demo-kube-flux" file="clusters/demo/sonarqube/deploy-sonarqube.yaml" >}} ```yaml -apiVersion: v1 -kind: Secret +apiVersion: apps/v1 +kind: Namespace metadata: - name: sonarqube-secret + name: sonarqube +--- +apiVersion: source.toolkit.fluxcd.io/v1beta2 +kind: HelmRepository +metadata: + name: sonarqube namespace: sonarqube -type: Opaque -data: - db-password: YWRtaW4= - monitoring-passcode: YWRtaW4= +spec: + interval: 1h0m0s + url: https://SonarSource.github.io/helm-chart-sonarqube ``` {{< /highlight >}} -As seen in part 4 of this guide, seal these secrets with `kubeseal` under `sealed-secret-sonarqube.yaml` and delete original secret file. - Inside Helm values, be sure to disable the PostgreSQL sub chart and use our self-hosted cluster with both `postgresql.enabled` and `jdbcOverwrite.enabled`. If needed, set proper `tolerations` and `nodeSelector` for deploying on a dedicated node. The installation take many minutes, be patient. Once done, you can access SonarQube on `https://sonarqube.kube.rocks` and login with `admin` / `admin`.