Files
infra-prod/deploy/prometheus/manifests/prometheus-k8s-ingress.yaml

27 lines
685 B
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/auth-signin: https://$host/oauth2/start?rd=$escaped_request_uri
nginx.ingress.kubernetes.io/auth-url: https://$host/oauth2/auth
name: prometheus-k8s
namespace: monitoring
spec:
ingressClassName: nginx
rules:
- host: metrics.prod.panic.haus
http:
paths:
- backend:
service:
name: oauth2-proxy-prometheus-service
port:
number: 4180
path: /
pathType: Prefix
tls:
- hosts:
- metrics.prod.panic.haus
secretName: monitoring-tls