事象
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedCreatePodSandBox 9s kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "xxxxx": plugin type="calico" failed (add): error getting ClusterInformation: connection is unauthorized: Unauthorized
Normal SandboxChanged 8s kubelet Pod sandbox changed, it will be killed and re-created.
解決
$ kubectl rollout restart daemonset calico-node -n kube-system
この前にも各ノードでsnap restart microk8sとかしたのでそのへんも効いていたかもしれない。