[Solved] failed to set bridge addr: “cni0“ already has an IP address different from xxxx

[Solved] Failed To Set Bridge Addr: “Cni0“ Already Has An Ip Address Different From Xxxx

failed to set bridge addr: “cni0“ already has an IP address different from xxxx

Recently, when debugging Kubernetes to add or delete a node, after which deploying Pod on this node, a community card address error exception occurred. The troubleshooting answer for this exception is as follows:

Error:

(mixed from comparable occasions): Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup community for sandbox “745720ffb20646054a167560299b19bb9ae046fe6c677b5d26312b89a26554e1”: failed to set bridge addr: “cni0” already has an IP address different from 172.20.2.1/24

Solution:

  1. Delete the node with out restarting the node server, restart the node server (on this case, it’s often brought on by the server cache, restart the server on it)
  2. After restarting the server or not, delete the improper NIC on the node and await the system to rebuild robotically, the operation course of is as follows.
sudo ifconfig cni0 down    
sudo ip hyperlink delete cni0

Read More:

This entry was posted in Error and tagged cubernetes, Network protocol, TCP/IP, The server on by Robins.

Leave a Reply

Your email address will not be published. Required fields are marked *