fix: update external dns and move pihole out of k8s cluster
This commit is contained in:
27
external-dns/index.ts
Normal file
27
external-dns/index.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import * as fs from "fs";
|
||||
import { HelmProvider } from "@cdktf/provider-helm/lib/provider";
|
||||
import { Release } from "@cdktf/provider-helm/lib/release";
|
||||
import { Construct } from "constructs";
|
||||
|
||||
type ExternalDNSOptions = {
|
||||
provider: HelmProvider;
|
||||
name: string;
|
||||
namespace: string;
|
||||
};
|
||||
|
||||
export class ExternalDNS extends Construct {
|
||||
constructor(scope: Construct, id: string, options: ExternalDNSOptions) {
|
||||
super(scope, id);
|
||||
|
||||
new Release(this, "external-dns", {
|
||||
...options,
|
||||
repository: "oci://registry-1.docker.io/bitnamicharts/",
|
||||
chart: "external-dns",
|
||||
values: [
|
||||
fs.readFileSync("helm/values/externaldns.values.yaml", {
|
||||
encoding: "utf8",
|
||||
}),
|
||||
],
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user