I would like to set the value KubeletConfiguration.cpuCFSQuota = false in the config.yaml passed to kubeadm when launching minikube to turn off CPU resource checking, but I have not managed to find the options to do this through the documentation here https://minikube.sigs.k8s.io/docs/handbook/config/ . The closest solution I have found is to use the option --extra-config=kubelet.cpu-cfs-quota=false but the --cpu-cfs-quota option for the kubelet has been deprecated and no longer has an effect.
Any ideas appreciated.
Environment:
- Ubuntu 20.04
- Minikube 1.17.1
- Kubernetes 1.20.2
- Driver docker (20.10.2)
Thanks, Piers.
Using the
--extra-config=kubelet.flag alongsideminikube startis a good approach but you would also need to Set Kubelet parameters via a config file.As you already noticed the
--cpu-cfs-quotaflag:So you need to set that parameter by creating a
kubeletconfig file:Now you can use that config file to set
cpuCFSQuota=false:and than call minikube with
--extra-config=kubelet.config=/path/to/config.yamlAlternately, you can start your minikube without the
--extra-configflag and than start the Kubelet with the--configflag set to the path of the Kubelet's config file. The Kubelet will then load its config from this file.I know these are a few steps more than you expected but setting the kubelet parameters via a config file is the recommended approach because it simplifies node deployment and configuration management.