计算任务脚本安装方式(64位)

版主: 论坛版主

头像
wusheng
硕士研究生
帖子: 260
注册时间: 周四 11月 01, 2018 6:13 pm

Re: 计算任务脚本安装方式(64位)

帖子 wusheng » 周三 5月 05, 2021 1:40 pm

御坂10703 写了:
周三 5月 05, 2021 9:29 am
御坂10703 写了:
周三 5月 05, 2021 9:14 am
nanopik2+armbian的kubelet一直反复重启.....
https://paste.ubuntu.com/p/kgv6sS9C8q/

Failed to start ContainerManager failed to initialize top level QOS containers: failed to update top level Burstable QOS cgroup : failed to set supported cgroup subsystems for cgroup [kubepods burstable]: Failed to set config for supported subsystems : failed to write 4611686018427387904 to hugetlb.64kB.limit_in_bytes: open /sys/fs/cgroup/hugetlb/kubepods/burstable/hugetlb.64kB.limit_in_bytes: permission denied
貌似这个文件的K是大写的...
root@nanopik2-s905:~# cat /sys/fs/cgroup/hugetlb/kubepods/burstable/hugetlb.64KB.limit_in_bytes
9223372036854710272
root@nanopik2-s905:~# cat /sys/fs/cgroup/hugetlb/kubepods/burstable/hugetlb.64kB.limit_in_bytes
cat: /sys/fs/cgroup/hugetlb/kubepods/burstable/hugetlb.64kB.limit_in_bytes: No such file or directory
root@nanopik2-s905:~#
另外我试着改了一下kubelet 你可以试试把这个解压后覆盖掉/usr/bin/kubelet,应该可用
http://tmp.link/f/60922f5a10bee

修改记录

代码: 全选

diff --git a/pkg/kubelet/cm/cgroup_manager_linux.go b/pkg/kubelet/cm/cgroup_manager_linux.go
index 6a4d65cd858..4e59ff7ac81 100644
--- a/pkg/kubelet/cm/cgroup_manager_linux.go
+++ b/pkg/kubelet/cm/cgroup_manager_linux.go
@@ -51,7 +51,7 @@ const (
 
 // hugePageSizeList is useful for converting to the hugetlb canonical unit
 // which is what is expected when interacting with libcontainer
-var hugePageSizeList = []string{"B", "kB", "MB", "GB", "TB", "PB"}
+var hugePageSizeList = []string{"B", "KB", "MB", "GB", "TB", "PB"}
 
 var RootCgroupName = CgroupName([]string{})
 
diff --git a/vendor/github.com/opencontainers/runc/libcontainer/cgroups/utils.go b/vendor/github.com/opencontainers/runc/libcontainer/cgroups/utils.go
index 7c995efee51..3c3eb2cf2bf 100644
--- a/vendor/github.com/opencontainers/runc/libcontainer/cgroups/utils.go
+++ b/vendor/github.com/opencontainers/runc/libcontainer/cgroups/utils.go
@@ -398,7 +398,7 @@ func RemovePaths(paths map[string]string) (err error) {
 
 func GetHugePageSize() ([]string, error) {
 	var pageSizes []string
-	sizeList := []string{"B", "kB", "MB", "GB", "TB", "PB"}
+	sizeList := []string{"B", "KB", "MB", "GB", "TB", "PB"}
 	files, err := ioutil.ReadDir("/sys/kernel/mm/hugepages")
 	if err != nil {
 		return pageSizes, err
有未记录问题联系https://t.me/wusheng

御坂10703
小学生
帖子: 32
注册时间: 周六 11月 03, 2018 9:13 pm

Re: 计算任务脚本安装方式(64位)

帖子 御坂10703 » 周三 5月 05, 2021 3:36 pm

wusheng 写了:
周三 5月 05, 2021 1:40 pm
御坂10703 写了:
周三 5月 05, 2021 9:29 am
御坂10703 写了:
周三 5月 05, 2021 9:14 am
nanopik2+armbian的kubelet一直反复重启.....
https://paste.ubuntu.com/p/kgv6sS9C8q/

Failed to start ContainerManager failed to initialize top level QOS containers: failed to update top level Burstable QOS cgroup : failed to set supported cgroup subsystems for cgroup [kubepods burstable]: Failed to set config for supported subsystems : failed to write 4611686018427387904 to hugetlb.64kB.limit_in_bytes: open /sys/fs/cgroup/hugetlb/kubepods/burstable/hugetlb.64kB.limit_in_bytes: permission denied
貌似这个文件的K是大写的...
root@nanopik2-s905:~# cat /sys/fs/cgroup/hugetlb/kubepods/burstable/hugetlb.64KB.limit_in_bytes
9223372036854710272
root@nanopik2-s905:~# cat /sys/fs/cgroup/hugetlb/kubepods/burstable/hugetlb.64kB.limit_in_bytes
cat: /sys/fs/cgroup/hugetlb/kubepods/burstable/hugetlb.64kB.limit_in_bytes: No such file or directory
root@nanopik2-s905:~#
另外我试着改了一下kubelet 你可以试试把这个解压后覆盖掉/usr/bin/kubelet,应该可用
http://tmp.link/f/60922f5a10bee

修改记录

代码: 全选

diff --git a/pkg/kubelet/cm/cgroup_manager_linux.go b/pkg/kubelet/cm/cgroup_manager_linux.go
index 6a4d65cd858..4e59ff7ac81 100644
--- a/pkg/kubelet/cm/cgroup_manager_linux.go
+++ b/pkg/kubelet/cm/cgroup_manager_linux.go
@@ -51,7 +51,7 @@ const (
 
 // hugePageSizeList is useful for converting to the hugetlb canonical unit
 // which is what is expected when interacting with libcontainer
-var hugePageSizeList = []string{"B", "kB", "MB", "GB", "TB", "PB"}
+var hugePageSizeList = []string{"B", "KB", "MB", "GB", "TB", "PB"}
 
 var RootCgroupName = CgroupName([]string{})
 
diff --git a/vendor/github.com/opencontainers/runc/libcontainer/cgroups/utils.go b/vendor/github.com/opencontainers/runc/libcontainer/cgroups/utils.go
index 7c995efee51..3c3eb2cf2bf 100644
--- a/vendor/github.com/opencontainers/runc/libcontainer/cgroups/utils.go
+++ b/vendor/github.com/opencontainers/runc/libcontainer/cgroups/utils.go
@@ -398,7 +398,7 @@ func RemovePaths(paths map[string]string) (err error) {
 
 func GetHugePageSize() ([]string, error) {
 	var pageSizes []string
-	sizeList := []string{"B", "kB", "MB", "GB", "TB", "PB"}
+	sizeList := []string{"B", "KB", "MB", "GB", "TB", "PB"}
 	files, err := ioutil.ReadDir("/sys/kernel/mm/hugepages")
 	if err != nil {
 		return pageSizes, err
好像正常了
图片

回复