fix: UtilityServices | use secure ingress routes

This commit is contained in:
2025-11-22 23:19:44 +05:00
parent 4def414c16
commit 65ed6ea664
4 changed files with 30 additions and 159 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 { IngressRoute, OnePasswordSecret } from "../../utils";
import { PublicIngressRoute, OnePasswordSecret } from "../../utils";
import { Providers } from "../../types";
type AuthentikServerOptions = {
@@ -44,14 +44,13 @@ export class AuthentikServer extends Construct {
],
});
new IngressRoute(this, "ingress", {
new PublicIngressRoute(this, "ingress", {
provider: kubernetes,
name: options.name,
namespace: options.namespace,
host: "auth.dogar.dev",
serviceName: `authentik-server`,
servicePort: 80,
tlsSecretName: "authentik-tls",
});
}
}