From b657037848a2df2c951034d7699b65f903432d3a Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Thu, 5 Dec 2024 18:50:14 +0100 Subject: [PATCH] feat(ingress): Move to nginx ingress --- manifests/grafana/ingress.yaml | 26 ++++++++++++++------------ manifests/prometheus/ingress.yaml | 26 ++++++++++++++------------ 2 files changed, 28 insertions(+), 24 deletions(-) diff --git a/manifests/grafana/ingress.yaml b/manifests/grafana/ingress.yaml index ffcef31..14f5ee3 100644 --- a/manifests/grafana/ingress.yaml +++ b/manifests/grafana/ingress.yaml @@ -1,16 +1,18 @@ -apiVersion: traefik.containo.us/v1alpha1 -kind: IngressRoute +apiVersion: networking.k8s.io/v1 +kind: Ingress metadata: name: grafana-ingress namespace: monitoring - annotations: - kubernetes.io/ingress.class: "traefik-inter" spec: - entryPoints: - - websecure - routes: - - kind: Rule - match: Host(`grafana.entos`) - services: - - name: grafana-svc - port: 80 + ingressClassName: nginx-internal + rules: + - host: grafana.entos + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: grafana-svc + port: + number: 80 diff --git a/manifests/prometheus/ingress.yaml b/manifests/prometheus/ingress.yaml index d1bdda9..ad67b0c 100644 --- a/manifests/prometheus/ingress.yaml +++ b/manifests/prometheus/ingress.yaml @@ -1,16 +1,18 @@ -apiVersion: traefik.containo.us/v1alpha1 -kind: IngressRoute +apiVersion: networking.k8s.io/v1 +kind: Ingress metadata: name: prometheus-ingress namespace: monitoring - annotations: - kubernetes.io/ingress.class: "traefik-inter" spec: - entryPoints: - - websecure - routes: - - kind: Rule - match: Host(`prometheus.entos`) - services: - - name: prometheus-svc - port: 9090 + ingressClassName: nginx-internal + rules: + - host: prometheus.entos + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: prometheus-svc + port: + number: 9090