infra/k8s/monitoring/ingresses.yaml

72 lines
1.5 KiB
YAML
Raw Normal View History

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: grafana
spec:
rules:
2024-07-27 23:54:45 +00:00
- host: grafana.home.finn.io
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: grafana
port:
number: 3000
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
2024-07-27 23:54:45 +00:00
name: prometheus-internal
annotations:
janky.solutions/auth-glue: prometheus
spec:
rules:
- host: prometheus.monitoring.k8s
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: prometheus-k8s
port:
number: 9090
2024-07-27 23:54:45 +00:00
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: prometheus
annotations:
traefik.ingress.kubernetes.io/router.middlewares: monitoring-oauth2-proxy-prometheus-errors@kubernetescrd, monitoring-oauth2-proxy-prometheus@kubernetescrd
spec:
rules:
- host: prometheus.k8s.home.finn.io
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: prometheus-k8s
port:
number: 9090
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: oauth2-proxy-prometheus
spec:
rules:
- host: prometheus.k8s.home.finn.io
http:
paths:
- pathType: Prefix
path: /oauth2
backend:
service:
name: oauth2-proxy-prometheus
port:
number: 4180