简体   繁体   English

Raspberry Pi 4 上的 K3S - kubectl get pods 运行超时

[英]K3S on Raspberry Pi 4 - kubectl get pods runs into timeout

Problem问题

When I connect a k3s agent to the server and run "kubectl get nodes" on the server.当我将 k3s 代理连接到服务器并在服务器上运行“kubectl get nodes”时。 I get the following error:我收到以下错误:

root@k3s-master:/home/marc# kubectl get nodes
Error from server (Timeout): the server was unable to return a response in the time allotted, but may still be processing the request (get nodes)

But if the server is standalone, I can easily run "kubectl get nodes".但如果服务器是独立的,我可以轻松运行“kubectl get nodes”。

CPU utilisation on the server stays about 30-40%.服务器上的 CPU 利用率保持在 30-40% 左右。 And RAM usage is at 583M of 3.74G. RAM 使用量为 3.74G 的 583M。

Specs眼镜

  • 2x Raspberry Pi 4b with 4GB RAM 2 个带 4GB RAM 的 Raspberry Pi 4b
  • Fresh install of raspbian lite (buster)全新安装 raspbian lite (buster)
  • Enabled legacy iptables and cgroups启用旧版 iptables 和 cgroups

K3S Installation K3S安装

On the server, I've done:在服务器上,我已经完成了:

curl -sfL https://get.k3s.io | sh -

And on the agent:在代理上:

curl -sfL https://get.k3s.io | K3S_URL=https://k3s-master:6443 K3S_TOKEN=<token> sh -

Thanks in advance, it drives me crazy!在此先感谢,它让我发疯!

Thanks to stack overflows related question feature, I've stumbled upon this question: PI4 k3s install server currently unable to handle the request由于堆栈溢出相关的问题功能,我偶然发现了这个问题: PI4 k3s install server 当前无法处理请求

There seems to be an issue regarding cgroup memory failures with buster kernel 5.4.x关于 cgroup memory 故障与 buster kernel 5.4.x 似乎存在问题

Edit编辑

Adding the cgroup didnt helped, so I switched to Ubuntu 20.05 and its working now.添加 cgroup 没有帮助,所以我切换到 Ubuntu 20.05 并且它现在可以工作了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM