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