If the user cannot close the notebook in PrimeHub UI and PrimeHub admin UI, you can use the Kubernetes command line to delete the pods forcibly.
You can try to delete jupyter pods on PrimeHub UI and PrimeHub admin UI.
Find the user pods:
kubectl -n hub get pods | grep jupyter-<username>
You can describe the pod and check the log to know the jupyter information.
kubectl -n hub describe pod jupyter-<username>
kubectl -n hub logs pod jupyter-<username> --tail=100
We can delete
the specific user jupyter notebook pod by the following command line.
kubectl -n hub delete pod jupyter-<username>
If above doesn’t work and the status is still Terminating, then we can delete the user pods forcibly
.
kubectl -n hub delete pod jupyter-<username> --force --grace-period=0