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