How to disable container eviction and image deletion in garbage collection

I am trying to set the garbage collection values, via KubeletConfiguration struct as explained in the below link.

while applying the configuration, i am getting the below error

error: resource mapping not found for name: “” from “hello.yaml”: no matches for kind KubeletConfiguration in version" Ensure CRDs are installed first.

Could someone please suggest how to fix this issue,
Is there a way to disable the image garbage collection, as these feature evicting the pods and deleting our docker images which are locally loaded in to the cluster nodes during high disk pressure.

What did you expect to happen?

Apply the configuration

Cluster information:

Kubernetes version:

Cloud provider

On-prem installation

OS version

# On Linux:
$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.2 LTS"
VERSION="22.04.2 LTS (Jammy Jellyfish)"

$ uname -a
Linux devgpu01 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64 x86_64 x86_64 GNU/LinuxInstallation method:
Host OS:  Ubuntu
CNI and version:
You can format your yaml by highlighting it and pressing Ctrl-Shift-C, it will make your output easier to read.

Did you directly copy this error? if so, it should be v1beta1, not v1betaq.

@mrbobbytables That seems to be a typo, i have updated it.
even with beta1, it is showing same error… I doubt is this configuration should be applied with kubectl or as config file for kubelet… I dont see any example to apply custom configuration files for kubelet.