-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
k3s commands timeout in Raspberry Pi 3 #2822
Comments
The log file indicates that there were files (database and certs) on this node from an existing install - are these logs going all the way back to the first startup? Can you clean files off this node and then collect logs from an initial clean startup? |
@brandond I have bought a new SD card (SanDisk Extreme Plus) and installed k3s. I've updated the gist's content to reflect the new logs: https://gist.github.com/felipecruz91/9f9472a2f74df474e0ccaef8a4a8a134 |
@brandond Do you know any k3s version that doesn't come with this issue? |
I don't believe this is a K3s issue. You're getting slow IO warnings immediately on startup which isn't a good sign.
I have a Pi3b with a "SanDisk 64GB MicroSDXC Ultra Uhs-1 Class 10" SD card. Here's what I get from sdtest.sh after running k3s for about a week:
|
@brandond Well, I just bought a new SanDisk Extreme Plus card... and installed k3s on it (nothing more is installed and I have only flashed it once). I find it hard to believe that the SD card is not good enough :/ |
@brandond I have run the tests in this new SD card and all of them are passing.
|
That looks much better. Are you still getting multi-second transaction times on that SD? Do you have other things running on this Pi that might be contesting with K3s for disk IO? |
@brandond Still getting errors, yes. I have no other services running in the RPi (just K3s). I found this very strange as I've heard and read everywhere how easy it is to get your Kubernetes cluster up and running with K3s, but in my case, it seems to be impossible. |
This being a Pi, I should ask if you are using a suitable power supply and cooling? The only other thing I can think of is that it's not getting stable power, or is overheating and throttling the CPU. I run mine in a case with a small fan, and official 2.5 amp power supply. Have you overclocked it or otherwise tweaked the configuration from stock? Are you also running an X11 display on the Pi, or is it just booted to a shell? |
Good point, @brandond. I'm checking if the RPi is under normal voltage with:
which unfortunately means it is throttled. I'll try getting a better power supply (currently using a phone charger). Thank you! |
@brandond I have bought the official RPi power supply and k3s is still not able to start after the RPi gets booted (the k3s service fails in a loop):
Full logs here: https://gist.github.com/felipecruz91/70aee615f7a2659ac7266ed1c5da90f3 |
Still seeing some excessively long timeouts here:
Have you tried formatting the SD card and starting over with a clean install in case some of the voltage dips caused problems? I've killed several cards with poor power supplies over the years. |
This repository uses a bot to automatically label issues which have not had any activity (commit/comment/label) for 180 days. This helps us manage the community issues better. If the issue is still relevant, please add a comment to the issue so the bot can remove the label and we know it is still valid. If it is no longer relevant (or possibly fixed in the latest release), the bot will automatically close the issue in 14 days. Thank you for your contributions. |
Environmental Info:
K3s Version:
k3s version v1.20.2+k3s1 (1d4adb0)
go version go1.15.5
Node(s) CPU architecture, OS, and Version:
Linux raspberrypi 5.4.83-v7+ #1379 SMP Mon Dec 14 13:08:57 GMT 2020 armv7l GNU/Linux
Cluster Configuration:
Just one Raspberry Pi 3 Model B acting as master node (no worker nodes).
Describe the bug:
k3s seems to be in a loop crashing (noticed high CPU consumption without having deployed a single container yet).
Steps To Reproduce:
Expected behavior:
Just k3s up and running without crashing.
Actual behavior:
Simple commands such as
k3s kubectl get pods
time out after a long period waiting.Additional context / logs:
SD Benchmark results:
Result of
journalctl --no-pager -u k3s &> k3s.log
:https://gist.github.com/felipecruz91/9f9472a2f74df474e0ccaef8a4a8a134
Result of
systemctl status k3s
:The text was updated successfully, but these errors were encountered: