yxjhhdx 2021-06-15 11:48 采纳率: 33.3%
浏览 27

安装openshift4 卡在boostrap failed to get the kubelet

 参照博客进行openshift4.4的安装。 前期工作都已经完成,然后boostrap 是rhcos 操作系统, 虽然安装好,但是里面没有启动任何东西,

然后 kubelet、 podman 的输出是:

$ sudo kubelet
I0615 03:45:49.108094  382677 server.go:425] Version: v1.18.3+002a51f
I0615 03:45:49.108891  382677 plugins.go:100] No cloud provider specified.
W0615 03:45:49.108936  382677 server.go:568] standalone mode, no API client
W0615 03:45:49.109111  382677 server.go:624] failed to get the kubelet's cgroup: cpu and memory cgroup hierarchy not unified.  cpu: /user.slice, memory: /user.slice/user-1000.slice/session-3.scope.  Kubelet system container metrics may be missing.
W0615 03:45:49.147918  382677 server.go:482] No api server defined - no events will be sent to API server.
I0615 03:45:49.148049  382677 server.go:655] --cgroups-per-qos enabled, but --cgroup-root was not specified.  defaulting to /
I0615 03:45:49.148550  382677 container_manager_linux.go:266] container manager verified user specified cgroup-root exists: []
I0615 03:45:49.148581  382677 container_manager_linux.go:271] Creating Container Manager object based on Node Config: {RuntimeCgroupsName: SystemCgroupsName: KubeletCgroupsName: ContainerRuntime:docker CgroupsPerQOS:true CgroupRoot:/ CgroupDriver:cgroupfs KubeletRootDir:/var/lib/kubelet ProtectKernelDefaults:false NodeAllocatableConfig:{KubeReservedCgroupName: SystemReservedCgroupName: ReservedSystemCPUs: EnforceNodeAllocatable:map[pods:{}] KubeReserved:map[] SystemReserved:map[] HardEvictionThresholds:[{Signal:memory.available Operator:LessThan Value:{Quantity:100Mi Percentage:0} GracePeriod:0s MinReclaim:<nil>} {Signal:nodefs.available Operator:LessThan Value:{Quantity:<nil> Percentage:0.1} GracePeriod:0s MinReclaim:<nil>} {Signal:nodefs.inodesFree Operator:LessThan Value:{Quantity:<nil> Percentage:0.05} GracePeriod:0s MinReclaim:<nil>} {Signal:imagefs.available Operator:LessThan Value:{Quantity:<nil> Percentage:0.15} GracePeriod:0s MinReclaim:<nil>}]} QOSReserved:map[] ExperimentalCPUManagerPolicy:none ExperimentalCPUManagerReconcilePeriod:10s ExperimentalPodPidsLimit:-1 EnforceCPULimits:true CPUCFSQuotaPeriod:100ms ExperimentalTopologyManagerPolicy:none}
I0615 03:45:49.148856  382677 topology_manager.go:126] [topologymanager] Creating topology manager with none policy
I0615 03:45:49.148870  382677 container_manager_linux.go:301] [topologymanager] Initializing Topology Manager with none policy
I0615 03:45:49.148882  382677 container_manager_linux.go:306] Creating device plugin manager: true
I0615 03:45:49.149163  382677 client.go:75] Connecting to docker on unix:///var/run/docker.sock
I0615 03:45:49.149191  382677 client.go:92] Start docker client with request timeout=2m0s
F0615 03:45:49.149673  382677 server.go:274] failed to run Kubelet: failed to get docker version: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
 

 

很明显是出了问题,但是尝试很多,仍然无法解决, 求救!~

  • 写回答

1条回答 默认 最新

  • 「已注销」 2023-03-17 05:45
    关注

    参考GPT和自己的思路:

    根据你提供的信息,出现了“failed to get the kubelet's cgroup: cpu and memory cgroup hierarchy not unified. cpu: /user.slice, memory: /user.slice/user-1000.slice/session-3.scope”的错误。这个错误一般是由于操作系统内存资源限制导致的。可以尝试调整内存资源的限制,具体的操作可以参考以下步骤:

    1. 在服务器上编辑 /etc/default/grub 文件。

    2. 修改 GRUB_CMDLINE_LINUX_DEFAULT="quiet" 为 GRUB_CMDLINE_LINUX_DEFAULT="quiet cgroup_enable=memory swapaccount=1".

    3. 更新 grub 配置,运行 sudo update-grub.

    4. 重启机器。

    这些步骤可能会解决问题。如果还没有解决问题,请提供更多的细节。

    评论

报告相同问题?

悬赏问题

  • ¥30 YOLO检测微调结果p为1
  • ¥20 求快手直播间榜单匿名采集ID用户名简单能学会的
  • ¥15 DS18B20内部ADC模数转换器
  • ¥15 做个有关计算的小程序
  • ¥15 MPI读取tif文件无法正常给各进程分配路径
  • ¥15 如何用MATLAB实现以下三个公式(有相互嵌套)
  • ¥30 关于#算法#的问题:运用EViews第九版本进行一系列计量经济学的时间数列数据回归分析预测问题 求各位帮我解答一下
  • ¥15 setInterval 页面闪烁,怎么解决
  • ¥15 如何让企业微信机器人实现消息汇总整合
  • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题