failed to reserve sandbox name

failed to reserve sandbox name

问题描述 #

当 k8s 集群时间发生回退时, 会出现 failed to reserve sandbox name 错误.

...
Aug 31 13:58:38 kind-control-plane kubelet[554]: E0831 13:58:38.610262 	554 log.go:32] "RunPodSandbox from runtime service failed" err="r
pc error: code = Unknown desc = failed to reserve sandbox name \"kube-scheduler-kind-control-plane_kube-system_3ead35239782468d5c21d9cb3933d
bb2_0\": name \"kube-scheduler-kind-control-plane_kube-system_3ead35239782468d5c21d9cb3933dbb2_0\" is reserved for \"e193fd73214c4db18ca31ed
c6aa2591445dba26d77b6df9d8956a9228031689e\""
...

解决办法 #

<sandbox-id> 对应的容器删掉

crictl stopp <sandbox-id>
crictl rmp <sandbox-id>

相关 issue #

相关 PR #