Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Persistent MAC address for flannel.1 beyond reboots #1828

Closed
siredmar opened this issue Nov 23, 2023 · 0 comments · Fixed by #1829
Closed

Persistent MAC address for flannel.1 beyond reboots #1828

siredmar opened this issue Nov 23, 2023 · 0 comments · Fixed by #1829

Comments

@siredmar
Copy link
Contributor

siredmar commented Nov 23, 2023

We are using openyurt.io to manage edge nodes in our cluster. These edge nodes are small IoT devices like Raspberry PI that could reboot or be offline any time. In cases when the device reboots and is offline in order to maintain the containers on the edge flannel needs to be started with the same MAC address. We are using VXLAN.

Expected Behavior

I propose a command line argument called persistent-mac that reads the nodes annotations where the MAC address is stored. Instead of creating a random MAC address, it re-uses the one read from the node annotations.
See https://openyurt.io/docs/user-manuals/network/edge-pod-network#background for further reference.

Current Behavior

The current behavior re-generates a new MAC address on startup. This can be problematic for other nodes that want to reach the rebooted node.

Possible Solution

Like said, a flag that enables the reading of the nodes annotations to reinitialize with the known MAC address.

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

Successfully merging a pull request may close this issue.

1 participant