Files
infra-prod/deploy/prometheus/ingress-prometheus.yaml
2025-03-29 22:17:02 +01:00

27 lines
761 B
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: prometheus-ingress
namespace: monitoring
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod"
nginx.ingress.kubernetes.io/rewrite-target: /$2
nginx.ingress.kubernetes.io/proxy-buffer-size: "64k"
spec:
ingressClassName: nginx
tls:
- hosts:
- monitoring.prod.panic.haus
secretName: monitoring-tls
rules:
- host: monitoring.prod.panic.haus
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: prometheus-k8s # service name created by Prometheus operator for the Prom instance
port:
name: web # the Prometheus service uses port name "web" for 9090