Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
loxiaopohaiol opened this issue Nov 21, 2024 · 4 comments

Comments

@loxiaopohaiol
Copy link

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?

@rbrtbnfgl
Copy link
Contributor

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

@thomasferrandiz
Copy link
Contributor

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.

@loxiaopohaiol
Copy link
Author

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
Copy link
Author

loxiaopohaiol commented Dec 2, 2024

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants