No matches for kind "Middleware" in version "traefik.io/v1alpha1" ensure CRDs are installed first

when I tried to create the middleware:

apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
  name: test-auth
spec:
  forwardAuth:
    address: https://example.com/auth

shows error:

E0920 19:19:51.718526 96735 memcache.go:287] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request
E0920 19:19:52.139693 96735 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request
error: resource mapping not found for name: "test-auth" namespace: "" from "/private/var/folders/1p/dz3r2rz55kd60_t8sgslkvvh0000gn/T/d9128eaaf4f2e6850476c1cf830476fb/resource.yaml": no matches for kind "Middleware" in version "traefik.io/v1alpha1"
ensure CRDs are installed first

am I missing something? this is the docuement: Traefik ForwardAuth Documentation - Traefik

You can install the missing CRDs with this:

# Install Traefik Resource Definitions:
kubectl apply -f https://raw.githubusercontent.com/traefik/traefik/v2.10/docs/content/reference/dynamic-configuration/kubernetes-crd-definition-v1.yml

From this page: Kubernetes IngressRoute & Traefik CRD - Traefik