kubelet
kubelet copied to clipboard
kubelet fails to be restarted when the NFS server is offline.
Hi team,
I'd like to report the current issue of our k8s cluster .
Prerequisites
- Start the NFS server on machine1.
- Mount the NFS shared disk of machine1 to machine2,
mount -o nfsvers=4,rw,tcp,retry=0,timeo=${mount_timeo:-6000} 172.10.10.10:/opt/backup/ /opt/backup/elasticsearch/repo - Stop the NFS server on machine 1.
- Restart kubelet on machine 2.
The Kubernetes version is v1.25.3. In this case, access to the shared disk on machine 2 is blockedwhich I guess is why kubelet fails to start. Therefore, I suggest that you use the OS library to access system resources. Do you add a timeout setting to avoid startup failure in this case?