Skip to content
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

fresh k3s install k3s-server process high cpu and failed to response to kubectl #2798

Closed
jli3388 opened this issue Jan 11, 2021 · 3 comments
Closed
Assignees
Milestone

Comments

@jli3388
Copy link

jli3388 commented Jan 11, 2021

Environmental Info:
K3s Version: v1.20.0+k3s2

Node(s) CPU architecture, OS, and Version: Linux k0 5.4.83-v7l+ #1379 SMP Mon Dec 14 13:11:54 GMT 2020 armv7l GNU/Linux

Cluster Configuration: 1 master, 5 workers. All raspberry pi 4.

Describe the bug:
Fresh installation afterwards on the server node, k3s-server would stay on around 100+% cpu and it fails to answer any kubectl command.

Steps To Reproduce:

  1. uninstalled old k3s installation using "k3s-uninstall.sh" (https://rancher.com/docs/k3s/latest/en/installation/uninstall/).
  2. find . -type d | grep rancher | xargs rm -Rf (manually remove any directory on the system that has the word "rancher" on it. )
  3. follow the install doc to make sure the node uses legacy iptables.
  4. curl -sfL https://get.k3s.io | sh -
  5. k3s --debug kubectl get nodes <--- would simply hangs..

Expected behavior:

  • k3s kubectl get nodes <--- should returns at least showing master node before I register any worker nodes.
  • k3s-server shouldn't consistently on high cpu usage.

Actual behavior:

  • k3s-server didn't start properly
  • k3s-server failed to communicate with kubectl.

Additional context / logs:

@jli3388 jli3388 changed the title fresh k3s install k3s-server process high cpu and failed to response from kubectl fresh k3s install k3s-server process high cpu and failed to response to kubectl Jan 11, 2021
@i5Js
Copy link

i5Js commented Jan 11, 2021

Downgrade to 1.19 or wait till 1.20.2, There is a known issue with v1.20 on arm caused by a golang compiler issue. v1.20.2 will include a workaround: kubernetes/kubernetes#97685

@brandond brandond self-assigned this Feb 10, 2021
@brandond brandond added this to the v1.20.3+k3s1 milestone Feb 10, 2021
@rancher-max
Copy link
Contributor

Watching k3s-server with top consistently shows below 10% usage on my raspberrypi 4 using commit 6e768c301e77738ffd69934363aa0479c4a516d6. I am also able to execute kubectl commands successfully, including deploying, removing, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants