Referencing the article here: Subnet router failover · Tailscale
While there exists the basic ingredients of using Tailscale router in HA, its missing some key operational parts. The requirements to run in HA are:
- Need to be able to script initialization and authentication of tailscale.
- Set it and forget it configuration. Not needing to recreate router boxes constantly.
- Be able to survive restarts.
To achieve 1. the only method is to generate ’ Auth keys’ and add them to the script that will call tailscale up
on the box. However Auth keys have an expiry period. So now there is an additional burden to constantly recreate router boxes so the key on them doesnt expire, which violates 2.
for 3. tailscale doesnt seem to have an easy mechanism to run tailscale up
with custom params (like auth-key) in a systemd init script. atleast nothing that i could find in the docs. Since this is needed to achieve 3, currently this is also left to the user to implement.