apiVersion: gateway.networking.k8s.io/v1alpha2
kind: TCPRoute
metadata:
  name: gitea-ssh
  namespace: gitea
  labels:
    app.kubernetes.io/name: gitea-ssh
    app.kubernetes.io/instance: gitea
    app.kubernetes.io/part-of: gitea
spec:
  parentRefs:
    - group: gateway.networking.k8s.io
      kind: Gateway
      name: traefik-gateway
      namespace: traefik
      sectionName: ssh
  rules:
    - backendRefs:
        - kind: Service
          name: gitea-ssh
          port: 22
