feat(ingress): Move to nginx ingress

This commit is contained in:
Tanguy Herbron 2024-12-05 18:50:14 +01:00
parent 7b8482cddc
commit b657037848
2 changed files with 28 additions and 24 deletions

View File

@ -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

View File

@ -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