feat: CDKTF | migrate prometheus into cdktf

This commit is contained in:
2025-07-15 12:22:55 +05:00
parent 4f15e8d65a
commit 81702fac64
3 changed files with 35 additions and 10 deletions

View File

@@ -16,6 +16,7 @@ import { Manifest } from "@cdktf/provider-kubernetes/lib/manifest";
import { PiHole } from "./pihole";
import { MemcachedCluster } from "./memcached";
import { Nginx } from "./nginx";
import { Prometheus } from "./prometheus";
dotenv.config();
@@ -81,6 +82,12 @@ class Homelab extends TerraformStack {
name: "ingress-nginx-internal",
});
new Prometheus(this, "prometheus", {
provider: helm,
namespace: "prometheus-system",
name: "prometheus-operator",
});
const certManagerApiVersion = "cert-manager.io/v1";
new CertManager(this, "cert-manager", {