rancher / k3os

Purpose-built OS for Kubernetes, fully managed by Kubernetes.
https://k3os.io
Apache License 2.0
3.5k stars 396 forks source link

bug: Previous pods still exist after a reinstallation #872

Closed gaocegege closed 11 months ago

gaocegege commented 11 months ago

Version (k3OS / kernel)

k3s version v1.27.3+k3s1 (fe9604ca)
go version go1.20.5

5.19.0-46-generic #47~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jun 21 15:35:31 UTC 2

Architecture

x86_64

Describe the bug

I created some pods in the k3s cluster. Then I uninstall the cluster with k3s-uninstall.sh. Then I reinstall it with curl -sfL https://get.k3s.io | sh -

I still can get the previous pods. BTW, I am using k3s contained as the runtime. Thus it may not be related to https://github.com/k3s-io/k3s/issues/1995

To Reproduce

curl -sfL https://get.k3s.io | sh -
sudo k3s kubectl run nginx --image=nginx
k3s-uninstall.sh
curl -sfL https://get.k3s.io | sh -
sudo k3s kubectl get pods
// Could get the nginx successfully

Expected behavior

Previous pods should be deleted.

Actual behavior

Previous pods exist.

Additional context

gaocegege commented 11 months ago

Sorry, I get the wrong repo.