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

host-local: keep Pod IP #984

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

siredmar
Copy link

@siredmar siredmar commented Nov 23, 2023

@siredmar siredmar changed the title Keep Pod IP host-local: keep Pod IP Nov 23, 2023
@siredmar
Copy link
Author

siredmar commented Dec 6, 2023

@mmorel-35 @squeed does any of you guys have time to review this?

Signed-off-by: Armin Schlegel <[email protected]>

keep pod IP:
add relationship between podNs/podName and pod IP and relationship is stored in a disk file that named by podIP_podns_podName. If podName file exists, we will use the already reserved IP for the pod. If podName file do not exists, go through the original process. 
fix IP of deleted pod can be reused when IP address walks around the IP range.

Co-authored-by: openyurt <openyurt.io>
Signed-off-by: Armin Schlegel <[email protected]>
Signed-off-by: Armin Schlegel <[email protected]>
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 this pull request may close these issues.

host-local: save IP for pod and namespace for restore after reboot
1 participant