fix: Prometheus | remove insecure grafana ingress

This commit is contained in:
2025-11-22 23:20:36 +05:00
parent b2fd9d100a
commit 454b299e1c
2 changed files with 6 additions and 55 deletions

View File

@@ -2,11 +2,10 @@ import * as fs from "fs";
import * as path from "path";
import { Release } from "@cdktf/provider-helm/lib/release";
import { Construct } from "constructs";
import { IngressRoute } from "../../utils";
import { Providers } from "../../types";
import { HelmProvider } from "@cdktf/provider-helm/lib/provider";
type PrometheusOptions = {
providers: Providers;
provider: HelmProvider;
name: string;
namespace: string;
version: string;
@@ -16,22 +15,8 @@ export class Prometheus extends Construct {
constructor(scope: Construct, id: string, options: PrometheusOptions) {
super(scope, id);
const { helm, kubernetes } = options.providers;
new IngressRoute(this, "ingress", {
provider: kubernetes,
name: "grafana",
namespace: options.namespace,
entryPoints: ["websecure"],
serviceName: "prometheus-operator-grafana",
servicePort: 80,
tlsSecretName: "grafana-tls",
host: "grafana.dogar.dev",
});
new Release(this, id, {
...options,
provider: helm,
repository: "https://prometheus-community.github.io/helm-charts",
chart: "kube-prometheus-stack",
createNamespace: true,