CentaurusInfra/mizar

When pod running issue and keeps restarting, ip addresses are kept allocating to the pod and wasted

Closed this issue · 0 comments

What happened:
When there is a pod in the cluster, it has issue and keep restarting by cni, the ip will keep being allocated to the pod. The ip addresses are wasted in such scenario. We need to return ip back when pod starting failed.

What you expected to happen:
Ip resource shall only be used for running pods.

How to reproduce it (as minimally and precisely as possible):
Start a cluster, assuming there is a pod has issue then keep restarting, or make a such pod. The allocatable ip addresses become less and less.