kubectl描述节点,报告一些错误

时间:2017-10-08 01:14:50

标签: kubernetes

我在kubectl describe nodes nodename中遇到此错误。我刚刚进行了谷歌搜索,但没有找到任何有用的信息,这意味着什么。

Failed to update Node Allocatable Limits "": failed to set supported cgroup subsystems for cgroup : Failed to set config for supported subsystems : failed to write 3783778304 to memory.limit_in_bytes: write /rootfs/sys/fs/cgroup/memory/memory.limit_in_bytes: invalid argument

我是否需要使用sysctl更改某些内核设置?

[iahmad@lxplus000 ~]$ kubectl --version
Kubernetes v1.5.2
[iahmad@lxplus000 ~]$ 
[iahmad@lxplus000 ~]$ 
[iahmad@lxplus000 ~]$ kubectl version
Client Version: version.Info{Major:"1", Minor:"5", GitVersion:"v1.5.2", GitCommit:"269f928217957e7126dc87e6adfa82242bfe5b1e", GitTreeState:"clean", BuildDate:"2017-07-03T15:31:10Z", GoVersion:"go1.7.4", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.6", GitCommit:"4bc5e7f9a6c25dc4c03d4d656f2cefd21540e28c", GitTreeState:"clean", BuildDate:"2017-09-18T08:52:26Z", GoVersion:"go1.9", Compiler:"gc", Platform:"linux/amd64"}
[iahmad@lxplus000 ~]$ 

1 个答案:

答案 0 :(得分:1)

这取决于kubectl/kubernetes版本:kubernetes issue 42701

中看到(并修复了)

1.6应该已修补。 如果这不是同一个错误,则在issue 29166

中也会看到错误消息
  

我忘了在创建新VM后忘记激活disk.uuid