Admission controller CRD error

Any idea, how to resolve this error.
error: resource mapping not found for name: “” namespace: “” from “admission-configuration.yaml”: no matches for kind “AdmissionConfiguration” in version “apiserver.config.k8s.io/v1
ensure CRDs are installed first

This is my config file -
apiVersion: apiserver.config.k8s.io/v1
kind: AdmissionConfiguration
plugins:

  • name: ImagePolicyWebhook
    configuration:
    imagePolicy:
    kubeConfigFile: /root/CKS/ImagePolicy/admission-kubeconfig.yaml
    allowTTL: 50
    denyTTL: 50
    retryBackoff: 500
    defaultAllow: true

The key idea here is that you don’t apply the configuration via kubectl; you reference it as a config file that is referenced as an argument to kube-apiserver in /etc/kubectl/manifests/kube-apiserver.yaml. See the docs for more details.