Este conteúdo não está disponível no idioma selecionado
Estamos trabalhando constantemente para disponibilizar conteúdo no idioma selecionado. Agradecemos sua paciência.
How do I resolve the "No space left on device: unknown" error on my Amazon EKS worker node?
2 minuto de leitura
0
I want to resolve the "No space left on device: unknown" error on my Amazon Elastic Kubernetes Service (Amazon EKS) worker node.
Resolution
To resolve the No space left on device: unknown error on your Amazon EKS worker node, complete the following steps:
Cordon the worker node to remove the worker node from the cluster and to prevent pods from being scheduled: Note: Replace example-worker-node with the worker node name. Make sure that you use the correct IP address as part of the worker node name (ex. ip-123-456-78-90.aws-region.compute.internal).
kubectl cordon example-worker-node
Drain the worker node: Note: Replace example-worker-node with the worker node name. Make sure that you use the correct IP address as part of the worker node name (ex. ip-123-456-78-90.aws-region.compute.internal).
To connect to the affected worker node, use SSH or Sessions Manager, a capability of AWS Systems Manager.
Switch to the root user:
sudo su -
Manually prune or delete dangling and unused images. By default, the namespace is k8s.io. Note: You might receive the error message Buildkit is not running or installed errors when you run this command. You can ignore this error and any other error messages that you might receive when you run this command.
nerdctl system prune --all --namespace=k8s.io
Uncordon the worker node to put the worker node back into service: Note: Replace example-worker-node with the worker node name. Make sure that you use the correct IP address as part of the worker node name (ex. ip-123-456-78-90.aws-region.compute.internal).
kubectl uncordon example-worker-node
Check that the worker node status is Ready. Note: Replace example-worker-node with the worker node name. Make sure that you use the correct IP address as part of the worker node name (ex. ip-123-456-78-90.aws-region.compute.internal).
kubectl get nodes | grep example-worker-node
Check that you can schedule pods and that they run successfully: Note: Replace example-worker-node with the worker node name. Make sure that you use the correct IP address as part of the worker node name (ex. ip-123-456-78-90.aws-region.compute.internal).
kubectl get pods -A -o wide | grep example-worker-node