feat: CDKTF | migrate DNS system to cdktf

This commit is contained in:
2025-07-15 11:25:22 +05:00
parent 5b352cbb7e
commit 910f1d06a3
4 changed files with 53 additions and 4 deletions

12
main.ts
View File

@@ -13,6 +13,7 @@ import { AuthentikServer } from "./authentik";
import { RedisCluster } from "./redis";
import { CertManager } from "./cert-manager";
import { Manifest } from "@cdktf/provider-kubernetes/lib/manifest";
import { PiHole } from "./pihole";
dotenv.config();
@@ -55,8 +56,6 @@ class Homelab extends TerraformStack {
},
});
const certManagerApiVersion = "cert-manager.io/v1";
new Longhorn(this, "longhorn", {
namespace: "longhorn-system",
name: "longhorn",
@@ -67,6 +66,15 @@ class Homelab extends TerraformStack {
},
});
new PiHole(this, "pihole", {
namespace: "pihole-system",
provider: helm,
name: "pihole",
version: "2.26.1",
});
const certManagerApiVersion = "cert-manager.io/v1";
new CertManager(this, "cert-manager", {
certManagerApiVersion,
name: "cert-manager",