Skip to content

Commit 322dc01

Browse files
committed
add cert-manager for easy cert issuing
1 parent ff31aaf commit 322dc01

File tree

14 files changed

+10241
-12
lines changed

14 files changed

+10241
-12
lines changed

k8s/flux.cue

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,26 @@ bundle: {
22
apiVersion: "v1alpha1"
33
name: "codebattle"
44
instances: {
5+
"cert-manager": {
6+
module: url: "oci://ghcr.io/stefanprodan/modules/flux-helm-release"
7+
namespace: "flux-system"
8+
values: {
9+
repository: url: "https://charts.jetstack.io"
10+
chart: {
11+
name: "cert-manager"
12+
version: "v1.17.0"
13+
}
14+
sync: targetNamespace: "codebattle"
15+
helmValues: {
16+
crds: enabled: true
17+
config: {
18+
apiVersion: "controller.config.cert-manager.io/v1alpha1"
19+
kind: "ControllerConfiguration"
20+
enableGatewayAPI: true
21+
}
22+
}
23+
}
24+
}
525
"gateway": {
626
module: url: "oci://ghcr.io/stefanprodan/modules/flux-helm-release"
727
namespace: "flux-system"
@@ -28,15 +48,17 @@ bundle: {
2848
}
2949
patches: [{
3050
apiVersion: "gateway.networking.k8s.io/v1"
31-
kind: "HTTPRoute"
51+
kind: "Gateway"
3252
metadata: {
33-
name: "codebattle"
53+
name: "gateway"
3454
namespace: "codebattle"
3555
}
36-
spec: {
37-
_hostname: string @timoni(runtime:string:CODEBATTLE_HOSTNAME)
38-
hostnames: [_hostname]
39-
}
56+
_hostname: string @timoni(runtime:string:CODEBATTLE_HOSTNAME)
57+
spec: listeners: [{
58+
hostname: _hostname
59+
}, {
60+
hostname: _hostname
61+
}]
4062
}]
4163
}
4264
}

0 commit comments

Comments
 (0)