feat: CDKTF | migrate longhorn to cdktf
This commit is contained in:
17
main.ts
17
main.ts
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user