apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
  name: loki-gateway
  namespace: loki
  labels:
    helm.sh/chart: loki-17.1.0
    app.kubernetes.io/name: loki
    app.kubernetes.io/instance: loki
    app.kubernetes.io/version: "3.7.2"
    app.kubernetes.io/component: gateway
spec:
  parentRefs:
    - group: gateway.networking.k8s.io
      kind: Gateway
      name: traefik-gateway
      namespace: traefik
  hostnames:
    - loki.alexlebens.net
  rules:
    - backendRefs:
        - group: ""
          kind: Service
          name: loki-gateway
          port: 80
          weight: 1
      matches:
        - path:
            type: PathPrefix
            value: /
