Yes, sometimes it can get stuck when uninstalling ...
# general
f
Yes, sometimes it can get stuck when uninstalling via the installer. What you can do is either: - Delete k3s itself (
/usr/local/bin/k3s-uninstall.sh
[WARNING: This will delete all data in all namespaces]) - Manually cleanup the namespaces (
sudo $(which kubectl) --kubeconfig /etc/rancher/k3s/k3s.yaml delete namespace united-manufacturing-hub
) - If the manual cleanup also gets stuck you can attempt to remove the finalizers:
Copy code
sudo $(which kubectl) --kubeconfig /etc/rancher/k3s/k3s.yam get namespace "united-manufacturing-hub" -o json \
  | tr -d "\n" | sed "s/\"finalizers\": \[[^]]\+\]/\"finalizers\": []/" \
  | sudo $(which kubectl) --kubeconfig /etc/rancher/k3s/k3s.yam replace --raw /api/v1/namespaces/united-manufacturing-hub/finalize -f -
and then do a normal uninstall