feat: CDKTF | migrate metallb to cdktf

This commit is contained in:
2025-07-15 12:27:56 +05:00
parent 81702fac64
commit e132857423
3 changed files with 33 additions and 14 deletions

15
main.ts
View File

@@ -17,6 +17,7 @@ import { PiHole } from "./pihole";
import { MemcachedCluster } from "./memcached";
import { Nginx } from "./nginx";
import { Prometheus } from "./prometheus";
import { MetalLB } from "./metallb";
dotenv.config();
@@ -69,11 +70,10 @@ class Homelab extends TerraformStack {
},
});
new PiHole(this, "pihole", {
namespace: "pihole-system",
new MetalLB(this, "metallb", {
provider: helm,
name: "pihole",
version: "2.26.1",
name: "metallb",
namespace: "metallb-system",
});
new Nginx(this, "nginx", {
@@ -82,6 +82,13 @@ class Homelab extends TerraformStack {
name: "ingress-nginx-internal",
});
new PiHole(this, "pihole", {
namespace: "pihole-system",
provider: helm,
name: "pihole",
version: "2.26.1",
});
new Prometheus(this, "prometheus", {
provider: helm,
namespace: "prometheus-system",