kops: Unable to use kubelet reserved resources

kops version

  • my dev branch, have not validated on the master, but I have not changed this code
  • k8s version 1.8
  • on ec2

I am getting the error from kubelet: failed to run Kubelet: cannot reserve "storage" resource Here is the relevant cluster spec section that I am having problems with:

  kubelet:
    kubeReserved:
        cpu: "100m"
        memory: "100Mi"
        storage: "1Gi"
    kubeReservedCgroup: "/kube-reserved"
    systemReserved:
        cpu: "100m"
        memory: "100Mi"
        storage: "1Gi"
    systemReservedCgroup: "/system-reserved"
    enforceNodeAllocatable: "pods,system-reserved,kube-reserved"

cluster is being created using kops create -f mycluster.yaml

Expected behavior is that the kubectl start using reserved resources.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 36 (21 by maintainers)

Commits related to this issue

Most upvoted comments

We should follow the best-practices for cgroups in the base image and have the docs be able to work by default: https://github.com/kubernetes/kops/issues/3762