IngressRouteTCP not possible anymore

Hi,
I was testing some routes for a FTP server inside a Kubernetes node using IngressRouteTCP like this :

apiVersion: traefik.containo.us/v1alpha1
kind: IngressRouteTCP
metadata:
  name: sftp
  namespace: sftp
spec:
  routes:
    - match: HostSNI(`XXX`)
      services:
        - name: sftp
          port: 2022

It was ok when suddenly for no apparent reason i got this error message:
unable to recognize "ingressRoute.yml": no matches for kind "IngressRouteTCP" in version "traefik.containo.us/v1alpha1"

What can i do to recover the ability to create TCP routes ?

Thanks in advance !

Ok Solved ! I recreated the ressource with the below file:

apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
  name: ingressroutetcps.traefik.containo.us

spec:
  group: traefik.containo.us
  version: v1alpha1
  names:
    kind: IngressRouteTCP
    plural: ingressroutetcps
    singular: ingressroutetcp
  scope: Namespaced

I dont know why it was deleted ...

Hope this will help someone in the future.

Hi @amalon-sunr,

I'm happy to read that you have solved your problem :+1:

You have posted your question in the wrong forum section. For questions related to Traefik v2, please use the following section: https://community.traefik.io/c/traefik/traefik-v2

Thanks for your interest in Traefik!