27 lines
761 B
YAML
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
|