No kind "CustomResourceDefinition" is registered for version "apiextensions.k8s.io/v1"

Kubernetes version: v1.21.4

Hi all,
I am trying to upgrade my Kubernetes Api version in kfserving from “apiextensions.k8s.io/v1beta1” to “apiextensions.k8s.io/v1” using kubectl convert , and I encounter this issue.

error: unable to decode “./kfserving.yaml”: no kind “CustomResourceDefinition” is registered for version “apiextensions.k8s.io/v1beta1” in scheme “k8s.io/kubernetes/pkg/api/legacyscheme/scheme.go:30