feat: CDKTF | migrate coredns tweak into cdktf
This commit is contained in:
@@ -1,10 +0,0 @@
|
|||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: coredns-custom
|
|
||||||
namespace: kube-system
|
|
||||||
data:
|
|
||||||
forward.override: |-
|
|
||||||
forward . /etc/resolv.conf {
|
|
||||||
policy sequential
|
|
||||||
}
|
|
||||||
19
main.ts
19
main.ts
@@ -12,6 +12,7 @@ import { Longhorn } from "./longhorn";
|
|||||||
import { AuthentikServer } from "./authentik";
|
import { AuthentikServer } from "./authentik";
|
||||||
import { RedisCluster } from "./redis";
|
import { RedisCluster } from "./redis";
|
||||||
import { CertManager } from "./cert-manager";
|
import { CertManager } from "./cert-manager";
|
||||||
|
import { Manifest } from "@cdktf/provider-kubernetes/lib/manifest";
|
||||||
|
|
||||||
dotenv.config();
|
dotenv.config();
|
||||||
|
|
||||||
@@ -36,6 +37,24 @@ class Homelab extends TerraformStack {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
new Manifest(this, "core-dns", {
|
||||||
|
provider: kubernetes,
|
||||||
|
manifest: {
|
||||||
|
kind: "ConfigMap",
|
||||||
|
apiVersion: "v1",
|
||||||
|
metadata: {
|
||||||
|
name: "coredns-custom",
|
||||||
|
namespace: "kube-system",
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
"forward.override": `forward . /etc/resolv.conf {
|
||||||
|
policy sequential
|
||||||
|
}
|
||||||
|
`,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
const certManagerApiVersion = "cert-manager.io/v1";
|
const certManagerApiVersion = "cert-manager.io/v1";
|
||||||
|
|
||||||
new Longhorn(this, "longhorn", {
|
new Longhorn(this, "longhorn", {
|
||||||
|
|||||||
Reference in New Issue
Block a user