• Kubernetes Submit Queue's avatar
    Merge pull request #33616 from jingxu97/statusupdater-9-22 · d7f1484e
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue
    
    Fix volume states out of sync problem after kubelet restarts
    
    When kubelet restarts, all the information about the volumes will be
    gone from actual/desired states. When update node status with mounted
    volumes, the volume list might be empty although there are still volumes
    are mounted and in turn causing master to detach those volumes since
    they are not in the mounted volumes list. This fix is to make sure only
    update mounted volumes list after reconciler starts sync states process.
    This sync state process will scan the existing volume directories and
    reconstruct actual states if they are missing.
    
    This PR also fixes the problem during orphaned pods' directories. In
    case of the pod directory is unmounted but has not yet deleted (e.g.,
    interrupted with kubelet restarts), clean up routine will delete the
    directory so that the pod directoriy could be cleaned up (it is safe to
    delete directory since it is no longer mounted)
    
    The third issue this PR fixes is that during reconstruct volume in
    actual state, mounter could not be nil since it is required for creating
    container.VolumeMap. If it is nil, it might cause nil pointer exception
    in kubelet.
    Detailed design proposal is #33203
    d7f1484e
Name
Last commit
Last update
..
admission Loading commit data...
api Loading commit data...
apimachinery Loading commit data...
apis Loading commit data...
apiserver Loading commit data...
auth Loading commit data...
capabilities Loading commit data...
client Loading commit data...
cloudprovider Loading commit data...
controller Loading commit data...
conversion Loading commit data...
credentialprovider Loading commit data...
dns Loading commit data...
fieldpath Loading commit data...
fields Loading commit data...
generated Loading commit data...
genericapiserver Loading commit data...
healthz Loading commit data...
httplog Loading commit data...
hyperkube Loading commit data...
kubectl Loading commit data...
kubelet Loading commit data...
kubemark Loading commit data...
labels Loading commit data...
master Loading commit data...
metrics Loading commit data...
probe Loading commit data...
proxy Loading commit data...
quota Loading commit data...
registry Loading commit data...
routes Loading commit data...
runtime Loading commit data...
security Loading commit data...
securitycontext Loading commit data...
selection Loading commit data...
serviceaccount Loading commit data...
ssh Loading commit data...
storage Loading commit data...
types Loading commit data...
util Loading commit data...
version Loading commit data...
volume Loading commit data...
watch Loading commit data...
OWNERS Loading commit data...