Ok. I figured it out.
On centos.
/etc/systemd/system/kubelet.service.d/10-kubeadm.conf
you can add
Environment="KUBELET_EXTRA_ARGS=$KUBELET_EXTRA_ARGS --root-dir=/data/k8s/kubelet"
then
systemctl daemon-reload
systemctl restart kubelet
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…