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

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: ["172.16.0.0/16"]

# 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: