fix: MetalLB | do not allow running on control-plane

This commit is contained in:
2025-11-23 01:17:36 +05:00
parent 5906fdc2b4
commit 1205cca3d3
2 changed files with 9 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
import * as fs from "fs";
import * as path from "path";
import { HelmProvider } from "@cdktf/provider-helm/lib/provider"; import { HelmProvider } from "@cdktf/provider-helm/lib/provider";
import { Release } from "@cdktf/provider-helm/lib/release"; import { Release } from "@cdktf/provider-helm/lib/release";
import { Construct } from "constructs"; import { Construct } from "constructs";
@@ -17,6 +19,7 @@ export class MetalLB extends Construct {
repository: "https://metallb.github.io/metallb", repository: "https://metallb.github.io/metallb",
chart: "metallb", chart: "metallb",
createNamespace: true, createNamespace: true,
values: [fs.readFileSync(path.join(__dirname, "values.yaml"), "utf8")],
}); });
} }
} }

View File

@@ -0,0 +1,6 @@
controller:
nodeSelector:
nodepool: worker
speaker:
nodeSelector:
nodepool: worker