Closed SpComb closed 6 years ago
The only thing that --delete-local-data
affects is emptyDir
volumes: https://github.com/kubernetes/kubernetes/blob/v1.10.2/pkg/kubectl/cmd/drain.go#L413
The flag doesn't seem very useful if it aborts the entire node drain because of a single pod with emptyDir
volume at /tmp
... I'd imagine that it might make sense to leave the pods with emptyDir
volumes terminated but still scheduled on the same node for the duration of the reboot, but that isn't an option either.
Missing
kubectl drain --delete-local-data
, assuming that's what we want?This releases the kube lock and crashes the pod without rebooting the host.