commit a33163ae31c23bc95e5015f1821f760a8e98bdcd
parent 0a81e761ee7be07fce9cf6dd0b7608c648ef5c17
Author: MTRNord <mtrnord1@gmail.com>
Date: Fri, 20 Dec 2024 03:01:28 +0100
Deploy gerrit
Diffstat:
3 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/apps/base/gerrit/cert.yaml b/apps/base/gerrit/cert.yaml
@@ -0,0 +1,14 @@
+apiVersion: cert-manager.io/v1alpha2
+kind: Certificate
+metadata:
+ name: gerrit.midnightthoughts.space-tls
+ namespace: gerrit
+spec:
+ secretName: gerrit.midnightthoughts.space-tls
+ issuerRef:
+ kind: ClusterIssuer
+ name: letsencrypt-dns
+ commonName: "*.gerrit.midnightthoughts.space"
+ dnsNames:
+ - "*.gerrit.midnightthoughts.space"
+ - "gerrit.midnightthoughts.space"
diff --git a/apps/base/gerrit/gerrit_cluster.yaml b/apps/base/gerrit/gerrit_cluster.yaml
@@ -22,6 +22,11 @@ spec:
ingress:
enabled: true
host: gerrit.midnightthoughts.space
+ annotations:
+ external-dns.alpha.kubernetes.io/hostname: midnightthoughts.space
+ tls:
+ enabled: true
+ secret: gerrit.midnightthoughts.space-tls
# All Gerrit instances in the GerritCluster serve the same repositories and
# thus have to use the same serverId, which has to be set centrally here.
serverId: midnightthoughts-gerrit
diff --git a/apps/base/gerrit/kustomization.yaml b/apps/base/gerrit/kustomization.yaml
@@ -5,4 +5,5 @@ resources:
- repository.yaml
- release.yaml
- rbac.yaml
+ - cert.yaml
- gerrit_cluster.yaml