创建pod ,分配不了ip 问题

发布时间 2023-08-15 22:34:19作者: MhaiM

现象:Failed to create pod sandbox: rpc error: code = Unknown desc = [failed to set up sandbox container "84f81f2eb977db06dcafa1bd9d6000bc562d0c57b83484d16e08843bd11e18e3" network for pod "nginx-6799fc88d8-2rnkq": networkPlugin cni failed to set up pod "nginx-6799fc88d8-2rnkq_default" network: error getting ClusterInformation: connection is unauthorized: Unauthorized, failed to clean up sandbox container "84f81f2eb977db06dcafa1bd9d6000bc562d0c57b83484d16e08843bd11e18e3" network for pod "nginx-6799fc88d8-2rnkq": networkPlugin cni failed to teardown pod "nginx-6799fc88d8-2rnkq_default" network: error getting ClusterInformation: connection is unauthorized: Unauthorized]

1、原因: calico  网络插件问题导致

2、解决方案

重启calico网络插件即可