Skip to content

Failed to allocate pod ip even there're plenty available #2264

Description

@ttc0419

event:

14m                    Warning   FailedCreatePodSandBox   Pod/ingress-nginx-controller-644966f9d8-mmrdb   Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "566461a584386191b1cc4dcc05193d30f7120f467ab2c694e2811eda1db34247": plugin type="flannel" failed (add): failed to allocate for range 0: no IP addresses available in range set: 192.168.63.161-192.168.63.190

pods:

NAME                                        READY   STATUS              RESTARTS   AGE   IP               NODE            NOMINATED NODE   READINESS GATES
ingress-nginx-controller-644966f9d8-6l8cg   1/1     Running             0          16m   192.168.63.196   192.168.63.8    <none>           <none>
ingress-nginx-controller-644966f9d8-glqzs   1/1     Running             0          16m   192.168.63.131   192.168.63.10   <none>           <none>
ingress-nginx-controller-644966f9d8-mmrdb   0/1     ContainerCreating   0          16m   <none>           192.168.63.9    <none>           <none>
kube-flannel-ds-5tdbb                       1/1     Running             0          32m   192.168.63.8     192.168.63.8    <none>           <none>
kube-flannel-ds-wxzdt                       1/1     Running             0          32m   192.168.63.10    192.168.63.10   <none>           <none>
kube-flannel-ds-zc9m9                       1/1     Running             0          32m   192.168.63.9     192.168.63.9    <none>           <none>

related: #1416 kubernetes/kubernetes#57280 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions