fix: Authentik | use IngressRoute instead of Ingress

This commit is contained in:
2025-11-22 18:04:54 +05:00
parent ed8b6403cd
commit 3b439344f5
5 changed files with 14 additions and 283 deletions

View File

@@ -2,7 +2,7 @@ import * as fs from "fs";
import * as path from "path";
import { Release } from "@cdktf/provider-helm/lib/release";
import { Construct } from "constructs";
import { OnePasswordSecret } from "../../utils";
import { IngressRoute, OnePasswordSecret } from "../../utils";
import { Providers } from "../../types";
type AuthentikServerOptions = {
@@ -42,6 +42,16 @@ export class AuthentikServer extends Construct {
encoding: "utf8",
}),
],
}).importFrom("homelab/authentik");
});
new IngressRoute(this, "ingress", {
provider: kubernetes,
name: options.name,
namespace: options.namespace,
host: "auth.dogar.dev",
serviceName: `authentik-server`,
servicePort: 80,
tlsSecretName: "authentik-tls",
});
}
}

View File

@@ -88,7 +88,7 @@ authentik:
server:
replicas: 3
ingress:
enabled: true
enabled: false
annotations:
cert-manager.io/cluster-issuer: cloudflare-issuer
cert-manager.io/acme-challenge-type: dns01