homelab_gitops/infrastructure/monitoring/prometheus-ingress.yaml

19 lines
441 B
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: prometheus
namespace: monitoring
annotations:
kubernetes.io/ingress.class: "traefik"
spec:
rules:
- host: prometheus.local
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: prometheus-kube-prometheus-stack-prometheus
port:
number: 9090