fix: Authentik | use IngressRoute instead of Ingress
This commit is contained in:
@@ -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",
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user