Files
homelab/cache-infrastructure/index.ts

18 lines
549 B
TypeScript

import { Construct } from "constructs";
import { TerraformStack } from "cdktf";
import { KubernetesProvider } from "@cdktf/provider-kubernetes/lib/provider";
import { NixCache } from "./nixcache";
export class CacheInfrastructure extends TerraformStack {
constructor(scope: Construct, id: string) {
super(scope, id);
const kubernetes = new KubernetesProvider(this, "kubernetes", {
configPath: "~/.kube/config",
});
// Add cache-related infrastructure components here
new NixCache(this, "nix-cache", kubernetes);
}
}