-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Keep existing tailscale subnet routes when deploying and deleting #8012
Comments
It seems that Tailscale does not appear to expose the interface of the current configuration. Is there any good way to solve this problem? |
What do you mean by the interface of the current configuration? AFAIK, there is only one tailscale interface and if you change the config, that interface will use the new configuration |
Sorry for my mistake, I mean there is no I also encountered this issue. I tried to fix it, but I couldn't find a way to get the current subnet router. |
I thought this output would return the subroute config https://github.com/k3s-io/k3s/blob/master/pkg/vpn/vpn.go#L123 |
You are right, This is really good news. |
Is your feature request related to a problem? Please describe.
When deploying k3s with tailscale, we are resetting the tailscale subnet routes and adding the ones required for flannel communication. Therefore, if a user is already operating tailscale with subnet routes, his/her traffic will get disrupted.
When removing, we are deleting all subnet-routes, so we should also find a way to fix this
Describe the solution you'd like
Before resetting, we should read the current subnet routes, save them, and then, after the reset add them back together with the new one for flannel
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: