Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
624 views
in Technique[技术] by (71.8m points)

kubernetes - 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. 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".

CPU utilisation on the server stays about 30-40%. And RAM usage is at 583M of 3.74G.

Specs

  • 2x Raspberry Pi 4b with 4GB RAM
  • Fresh install of raspbian lite (buster)
  • Enabled legacy iptables and cgroups

K3S Installation

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!

question from:https://stackoverflow.com/questions/65648589/k3s-on-raspberry-pi-4-kubectl-get-pods-runs-into-timeout

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Thanks to stack overflows related question feature, I've stumbled upon this question: PI4 k3s install server currently unable to handle the request

There seems to be an issue regarding cgroup memory failures with buster kernel 5.4.x

Edit

Adding the cgroup didnt helped, so I switched to Ubuntu 20.05 and its working now.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...