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 kubelet.config.k8s.io/v1beta1" 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:
1.24.6

Cloud provider

On-prem installation

OS version

# On Linux:
$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.2 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

$ 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.