-
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
Maintain external Tailscale settings when applying k3s tailscale configuration #11512
Comments
This has nothing to do with K3s. We don't run any tailscale commands directly, we make it easier to connect tailscale and K3s. Also based off tailscales forum, it appears that tailscale config should persist across reboots, so you may have a separate issue. |
Ok, so K3S doesn't touch the Tailscale config? I think it must in some way, here's the sequence of events (with no other configuration changes in between) that triggered this for me:
|
Apologies, I answered far too quickly and should have let @manuelbuil answer. K3s does indeed make changes to tailscale directly via Line 61 in 68fbd1a
--reset flag by default. However, we do have the option to pass additional commands to the tailescale up command. So if you want to use k3s --vpn-auth , you can no longer configure tailscale separately, it all or nothing.
If you look at the docs we have some info on this but its not super clear. You need to pass the additional commands I'm assuming your using a
This results internally with k3s calling
|
No worries! That's worked, thanks for the help! |
Is your feature request related to a problem? Please describe.
I have Tailscale setup on my k3s nodes and I'd like to enable using them as an exit node and enabling tailscale SSH. This means I need to run
sudo tailscale up --ssh --advertise-exit-node
. If I run this after booting the node (and added the flags--accept-routes --advertise-routes=10.42.0.0/24
that are applied by k3s), the settings are successfully applied and I can use the node as an exit node. However, once I reboot the instance I lose the--ssh --advertise-exit-node
settings.Describe the solution you'd like
The settings would be retained.
Describe alternatives you've considered
A systemd script that runs after the k3s boot.
Additional context
k3s version v1.31.4+k3s1 (a562d09)
The text was updated successfully, but these errors were encountered: