[Solved] Failed to get node ip address matching nodeport cidr: no addresses found for cidrs []

The nodeport defined by the k8s cluster cannot take effect. There is no corresponding port listening in netstat

Check the Kube proxy log and find that

Guess, the address has run out. Temporary solution:

Modify Kube proxy configuration

kubectl edit cm kube-proxy  -n kube-system

# Add in the Path of nodePortAddresses
nodePortAddresses: [""]

# Delete kube-proxy pod working

The cluster is generated using kubedm. I guess you need to specify the address range of nodeportaddresses in kubedm

Similar Posts: