【问题标题】:K3S on Raspberry Pi 4 - kubectl get pods runs into timeoutRaspberry Pi 4 上的 K3S - kubectl get pods 运行超时
【发布时间】:2021-01-09 23:17:23
【问题描述】:

问题

当我将 k3s 代理连接到服务器并在服务器上运行“kubectl get nodes”时。我收到以下错误:

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)

但如果服务器是独立的,我可以轻松运行“kubectl get nodes”。

服务器上的 CPU 利用率保持在 30-40% 左右。 RAM 使用量为 3.74G 的 583M。

规格

  • 2x Raspberry Pi 4b 和 4GB RAM
  • 全新安装 raspbian lite (buster)
  • 启用旧版 iptables 和 cgroups

K3S 安装

在服务器上,我已经完成了:

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

在代理上:

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

提前谢谢,这让我发疯了!

【问题讨论】:

    标签: kubernetes raspberry-pi kubernetes-helm k3s


    【解决方案1】:

    感谢堆栈溢出相关问题功能,我偶然发现了这个问题:PI4 k3s install server currently unable to handle the request

    buster 内核 5.4.x 的 cgroup 内存故障似乎存在问题

    编辑

    添加 cgroup 没有帮助,所以我切换到 Ubuntu 20.05,它现在可以工作了。

    【讨论】:

      猜你喜欢
      • 2020-01-21
      • 1970-01-01
      • 2023-03-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-04-13
      • 2021-11-05
      相关资源
      最近更新 更多