fix: Grafana | use IngressRoute instead of Ingress

This commit is contained in:
2025-11-22 18:01:33 +05:00
parent a25c25afc4
commit ed8b6403cd
3 changed files with 40 additions and 4 deletions

View File

@@ -6,6 +6,7 @@ import { TerraformStack } from "cdktf";
import { Construct } from "constructs";
import { BarmanCloudPluginInstall } from "./barman";
import { Prometheus } from "./prometheus";
import { KubernetesProvider } from "@cdktf/provider-kubernetes/lib/provider";
export class K8SOperators extends TerraformStack {
constructor(scope: Construct, id: string) {
@@ -17,8 +18,15 @@ export class K8SOperators extends TerraformStack {
},
});
const kubernetes = new KubernetesProvider(this, "kubernetes", {
configPath: "~/.kube/config",
});
new Prometheus(this, "prometheus", {
provider: helm,
providers: {
helm,
kubernetes,
},
namespace: "monitoring",
name: "prometheus-operator",
version: "75.10.0",