feat: CDKTF | migrate longhorn to cdktf

This commit is contained in:
2025-07-15 09:10:04 +05:00
parent 5bfb72ef81
commit 452cfe37df
6 changed files with 77 additions and 13 deletions

17
main.ts
View File

@@ -5,9 +5,10 @@ import { App, TerraformStack, S3Backend } from "cdktf";
import { HelmProvider } from "@cdktf/provider-helm/lib/provider";
import { KubernetesProvider } from "@cdktf/provider-kubernetes/lib/provider";
import { GiteaServer } from "./gitea/server";
import { OnePassword } from "./1password/1password";
import { PostgresCluster } from "./postgres/postgres";
import { GiteaServer } from "./gitea";
import { OnePassword } from "./1password";
import { PostgresCluster } from "./postgres";
import { Longhorn } from "./longhorn";
dotenv.config();
@@ -32,6 +33,16 @@ class Homelab extends TerraformStack {
},
});
new Longhorn(this, "longhorn", {
namespace: "longhorn-system",
name: "longhorn",
version: "1.7.0",
providers: {
kubernetes,
helm,
},
});
new PostgresCluster(this, "postgres-cluster", {
name: "postgres-cluster",
namespace: "postgres-system",