Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
linux_faq:kubernetes_delete_namespace_hung_in_terminating_state [2021/07/13 22:25]
admin
linux_faq:kubernetes_delete_namespace_hung_in_terminating_state [2021/07/13 22:27] (current)
admin
Line 10: Line 10:
   curl -k -H "Content-Type: application/json" -X PUT --data-binary @tmp.json https://localhost:8080/api/v1/namespaces/BAD_NAMESPACE/finalize   curl -k -H "Content-Type: application/json" -X PUT --data-binary @tmp.json https://localhost:8080/api/v1/namespaces/BAD_NAMESPACE/finalize
  
 +  systemctl stop kubelet.service
   for item in `ctr -n k8s.io tasks ls | awk '{print $1}'`; do ctr -n k8s.io tasks kill $item; done    for item in `ctr -n k8s.io tasks ls | awk '{print $1}'`; do ctr -n k8s.io tasks kill $item; done 
   for item in `ctr -n k8s.io containers ls | awk '{print $1}'`; do ctr -n k8s.io containers rm $item; done   for item in `ctr -n k8s.io containers ls | awk '{print $1}'`; do ctr -n k8s.io containers rm $item; done
   ctr -n k8s.io tasks ls   ctr -n k8s.io tasks ls
   ctr -n k8s.io containers ls   ctr -n k8s.io containers ls
 +  systemctl start kubelet.service
  • linux_faq/kubernetes_delete_namespace_hung_in_terminating_state.txt
  • Last modified: 2021/07/13 22:27
  • by admin