canonical / microk8s

MicroK8s is a small, fast, single-package Kubernetes for datacenters and the edge.
https://microk8s.io
Apache License 2.0
8.29k stars 760 forks source link

kubectl/api hangs #4370

Open fawaf opened 6 months ago

fawaf commented 6 months ago

Summary

oddly, been running microk8s fine for a few weeks or so, and then i can't use kubectl or k9s to poke at the api anymore and everything hangs. it either hangs for a very long time and errors out, or hangs for a long time and exit successfully sometimes.

this is the second time that it happened, so i ended up rebuilding the cluster from scratch. (didn't save any logs/reports from the previous issue unfortunately)

What Should Happen Instead?

kubectl/api/k9s should be working relatively quickly and not hang for a long time

Reproduction Steps

run any sort of kubectl command

e.g.

  1. kubectl get ns
  2. kubectl get pods -A
  3. kubectl get secrets -A

Introspection Report

inspection-report-20240114_231401.tar.gz

Can you suggest a fix?

Are you interested in contributing with a fix?

fawaf commented 6 months ago

i also encounter https://github.com/canonical/microk8s/issues/3227, so this may also be part of the issue.