Files
homelab/cluster/applications/monitoring/httproute.yaml
2026-05-18 21:42:32 -05:00

37 lines
1010 B
YAML

# ------------------------------------------------------------------------------
# HTTPRoute — Grafana via Cilium Gateway
# Cert issued per-service via cert-manager annotation on the Certificate
# ------------------------------------------------------------------------------
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: grafana-tls
namespace: monitoring
spec:
secretName: grafana-tls
issuerRef:
name: letsencrypt-prod
kind: ClusterIssuer
dnsNames:
- grafana.local.mk-labs.cloud
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: grafana
namespace: monitoring
annotations:
external-dns.alpha.kubernetes.io/hostname: grafana.local.mk-labs.cloud
external-dns.alpha.kubernetes.io/target: "10.1.71.90"
spec:
parentRefs:
- name: fastpass-gateway
namespace: gateway
sectionName: https
hostnames:
- grafana.local.mk-labs.cloud
rules:
- backendRefs:
- name: monitoring-grafana
port: 80