fix: MetalLB | do not allow running on control-plane
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import * as fs from "fs";
|
||||
import * as path from "path";
|
||||
import { HelmProvider } from "@cdktf/provider-helm/lib/provider";
|
||||
import { Release } from "@cdktf/provider-helm/lib/release";
|
||||
import { Construct } from "constructs";
|
||||
@@ -17,6 +19,7 @@ export class MetalLB extends Construct {
|
||||
repository: "https://metallb.github.io/metallb",
|
||||
chart: "metallb",
|
||||
createNamespace: true,
|
||||
values: [fs.readFileSync(path.join(__dirname, "values.yaml"), "utf8")],
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
6
core-services/metallb/values.yaml
Normal file
6
core-services/metallb/values.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
controller:
|
||||
nodeSelector:
|
||||
nodepool: worker
|
||||
speaker:
|
||||
nodeSelector:
|
||||
nodepool: worker
|
||||
Reference in New Issue
Block a user