spidernet-io / spiderpool

Underlay and RDMA network solution of the Kubernetes, for bare metal, VM and any public cloud
https://spidernet-io.github.io/spiderpool/
Apache License 2.0
523 stars 76 forks source link

init-pod: restart agent should wait the multus configMap updated. #3572

Closed cyclinder closed 1 month ago

cyclinder commented 3 months ago

Spiderpool Version

all

Bug Type

Other

Main CNI

all

What happened?

We hit the issue about pods can't be started due to no default cni config found, we found the clusterNetwork of configMap is empty, but all logs show works.

What did you expect to happen?

init-pod: restart agent should wait the multus configMap updated.

How to reproduce it (as minimally and precisely as possible)

  1. install spiderpool

Additional Context

No response

weizhoublue commented 3 months ago

why to delay restarting agent ? the problem is the confimap is not updated. Ss there any mechanism in the agent writing the agent ?

cyclinder commented 3 months ago

I mean we should be checking the configMap if updated first, and then restart the agent.

ty-dc commented 1 month ago

fix #https://github.com/spidernet-io/spiderpool/pull/3732