Unable Allocate IP to Pods From Specific IP-Pool After Node Reboot

Problem

IPs are not getting assigned to pods from the specified IP address pool after a node restart.

Kubelet log error- Sample
Copy

Environment

  • Platform9 Edge Cloud - LTS-2 and below.
  • Whereabouts version v-0.4.10 and below.

Answer

The Engineering team has confirmed that the state is maintained in the dataDir in the ipam config. And you will have to manually cleanup the content from dataDir after every reboot .

This is an upstream bug which is fixed in whereabouts v0.4.10 in LTS2 release.

Allocated IP addresses are stored as files in /var/lib/cni/networks/$NETWORK_NAME. The path can be customized with the dataDir option listed above. Environments where IPs are released automatically on reboot (e.g. running containers are not restored) may have to specify /var/run/cni or another tmpfs mounted directory instead.

Additional Information

For more details refer:

Bug: https://github.com/k8snetworkplumbingwg/whereabouts/issues/291

Document: https://www.cni.dev/plugins/current/ipam/host-local/

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard