flannel icon indicating copy to clipboard operation
flannel copied to clipboard

Error: panic: runtime error: invalid memory address or nil pointer dereference

Open loxiaopohaiol opened this issue 1 year ago • 5 comments

My k8s cluster is v1.30.2, which have a master and a node. Now I set the Dual-Stack for flannel(v0.25.4).My flannel net-conf is: { "Network": "172.16.0.0/16", "EnableIPv6": true, "IPv6network": "fc00:10:245:0:0:0:0:0/110", "Backend": { "Type": "vxlan" } } I get this error:

image

How can I fix this?

loxiaopohaiol avatar Nov 21 '24 08:11 loxiaopohaiol

Could you add the output of the all flannel pod logs?

rbrtbnfgl avatar Nov 28 '24 14:11 rbrtbnfgl

This panic usually happens if you have configured flannel to use dual-stack but not kube-controller.

In later versions of flannel, the error message should be more explicit.

thomasferrandiz avatar Nov 29 '24 09:11 thomasferrandiz

This panic usually happens if you have configured flannel to use dual-stack but not kube-controller.

In later versions of flannel, the error message should be more explicit.

I set the dual-stack for the kube-controller-manager,there is the config: image

loxiaopohaiol avatar Dec 02 '24 05:12 loxiaopohaiol

Could you add the output of the all flannel pod logs?

I have two node: image

and now echo pod logs have this error: the master's flannel: image

the node's flannel: image

loxiaopohaiol avatar Dec 02 '24 05:12 loxiaopohaiol

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 31 '25 06:05 stale[bot]