This outlines a process for clearing IP address allocations with Whereabouts manually.
2.2
Unexpected shutdown from Kubernetes nodes
1. Examined the network attachment definition file for the deployment to determine the ippools
kubectl get net-attach-def -n namespace -o yaml
2. Stop all pods which use Multus + Whereabouts
kubectl scale deployment deployName -n namespace --replicas=0
3. Clear IP allocations
kubectl get crds | grep -i whereabouts
a. This should result in two CRDs
overlappingrangeipreservations.whereabouts.cni.cncf.io
ippools.whereabouts.cni.cncf.io
b. For each of those, perform:
kubectl get overlappingrangeipreservations.whereabouts.cni.cncf.io -A
kubectl get ippools.whereabouts.cni.cncf.io -A
c. then with each item there.
kubectl -n delete ippools.whereabouts.cni.cncf.io x.x.x.x
kubectl -n xxx delete overlappingrangeipreservations.whereabouts.cni.cncf.io x.x.x.x