Skip to content

Commit ef9bb59

Browse files
committed
Add Ingress Annotations to Fix Force HTTPS
1 parent f66f263 commit ef9bb59

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cdk/kittyhawk/src/ingress.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ export class Ingress extends Construct {
6161
const rules: IngressRule[] = props.rules.map((h) => ({
6262
host: h.host,
6363
metadata: {
64-
annotations: props.annotations,
64+
annotations: {
65+
"traefik.ingress.kubernetes.io/router.middlewares":
66+
"default-redict-http@kubernetescrd",
67+
...props.annotations,
68+
},
6569
},
6670
http: {
6771
paths: h.paths.map((path) => ({

0 commit comments

Comments
 (0)