tanzu tkg whereabouts ipam clearing IP allocations reserved IP
search cancel

tanzu tkg whereabouts ipam clearing IP allocations reserved IP

book

Article ID: 374129

calendar_today

Updated On:

Products

VMware Telco Cloud Automation

Issue/Introduction

This outlines a process for clearing IP address allocations with Whereabouts manually.

  1. Stop all pods which use Multus + Whereabouts (if possible)
  2. Clear IP allocations
  3. Start any pods which use Multus + Whereabouts.

 

Environment

2.2

Cause

Unexpected shutdown from Kubernetes nodes

Resolution

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