Files
truecharts/charts/stable/tailscale/docs/How-To-Guide.md
T
2025-03-07 00:15:32 +00:00

2.8 KiB

title
title
How-To

This is a quick how-to or setup-guide to use Tailscale on Talos.

:::caution

This guide doesn't cover using Tailscale with individual applications. While there are methods to use Tailscale (as an app) with other individual apps this requires Host-Networking and beyond the scope of this guide and may not work for all apps. The suggested use in the future will be the Tailscale Add-On

:::

Requirements

  • Tailscale Account (Free accounts available at Tailscale's Official website)
  • Tailscale Truecharts Chart
  • Tailscale DNS setup for Talos Cluster Domain

Generate a Tailscale Auth Key for your setup, easy to generate on the page below

tailscale-auth-key

Tailscale Chart Setup

Application name

Ideally use tailscale but you can use any name here.

App Configuration

  • Auth Key: The key you received from tailscale in prerequisites above
  • Userspace: Now enabled by default, as it is required when using local routes and as an exit node (see below). Userspace restricts clients to only accessing the GUI and Samba. More info in the Tailscale Userspace Guide.
  • Accept DNS: Enabling it will pass your Global Nameservers from Tailscale to your local install.
  • Routes: Change to the routes you wish Tailscale to have access to on the devices it's connected, ie your LAN.
  • Extra Args passes arguments/flags to the tailscale up command.
  • Hostname You can specify a specific hostname for use inside Tailscale. This is recommended as otherwise it will utilise the tailscale kubernetes podname as the machine name in the console, over time when the chart is upgraded it will add additional machines into Tailscale portal. (Passes --hostname HOSTNAME to Extra args)
  • Advertise as exit node This is used to pass traffic through tailscale like a private VPN. (Passes --advertise-exit-node to Extra args)

For more Extra Args and their usage please check the Tailscale Knowledge Base since we consider these advanced features and these may/not be compatible with everyone's exact setup.

Namespace Privileges Required for Talos Cluster

In your namespace.yaml file add

    pod-security.kubernetes.io/enforce: privileged

to allow this Chart to run with privileged permissions.

Tailscale DNS Setup

In Tailscale Portal on DNS, Namespace section add a new custom nameserver using the Blocky IP address and restrict to domain (SplitDNS) for the Domain used in ClusterTool for Talos.

tailscale-nameserver

Working Values Example

tailscale:
  authkey: MY_PRIVATE_AUTHKEY
  accept_dns: true
  routes: 192.168.1.0/24 # LAN Example
  advertise_as_exit_node: true
  hostname: "MyHostname"