apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
  name: qbittorrent-main
  labels:
    app.kubernetes.io/instance: qbittorrent
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: qbittorrent
    helm.sh/chart: qbittorrent-4.5.0
  namespace: qbittorrent
spec:
  parentRefs:
    - group: gateway.networking.k8s.io
      kind: Gateway
      name: traefik-gateway
      namespace: traefik
  hostnames:
    - "qbittorrent.alexlebens.net"
  rules:
    - backendRefs:
        - group: ""
          kind: Service
          name: qbittorrent
          namespace: qbittorrent
          port: 8080
          weight: 100
      matches:
        - path:
            type: PathPrefix
            value: /
