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 apiVersion: networking.k8s.io/v1
kind: IngressRoute kind: Ingress
metadata: metadata:
name: grafana-ingress name: grafana-ingress
namespace: monitoring namespace: monitoring
annotations:
kubernetes.io/ingress.class: "traefik-inter"
spec: spec:
entryPoints: ingressClassName: nginx-internal
- websecure rules:
routes: - host: grafana.entos
- kind: Rule http:
match: Host(`grafana.entos`) paths:
services: - path: /
- name: grafana-svc pathType: Prefix
port: 80 backend:
service:
name: grafana-svc
port:
number: 80

View File

@ -1,16 +1,18 @@
apiVersion: traefik.containo.us/v1alpha1 apiVersion: networking.k8s.io/v1
kind: IngressRoute kind: Ingress
metadata: metadata:
name: prometheus-ingress name: prometheus-ingress
namespace: monitoring namespace: monitoring
annotations:
kubernetes.io/ingress.class: "traefik-inter"
spec: spec:
entryPoints: ingressClassName: nginx-internal
- websecure rules:
routes: - host: prometheus.entos
- kind: Rule http:
match: Host(`prometheus.entos`) paths:
services: - path: /
- name: prometheus-svc pathType: Prefix
port: 9090 backend:
service:
name: prometheus-svc
port:
number: 9090