解决方案
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 8m24s default-scheduler Successfully assigned middleware/xxx-master-0 to xxx
Warning AlreadyMountedVolume 8m24s kubelet The requested fsGroup is 1001, but the volume local-pv-xxx has GID 1000. The volume may not be shareable.
修改 runAsUser 为1000
securityContext:
runAsUser: 1001
引用
https://kubernetes.io/docs/concepts/storage/persistent-volumes/
https://kubernetes.io/docs/concepts/storage/storage-classes/
https://stackoverflow.com/questions/51390789/kubernetes-persistent-volume-claim-mounted-with-wrong-gid
https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
https://kubernetes.io/zh/docs/tasks/configure-pod-container/security-context/