**Description** <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. --> ⚒️ Fixes # <!--(issue)--> **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [x] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code - [x] 📜 Documentation Changes **🧪 How Has This Been Tested?** <!-- Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration --> **📃 Notes:** <!-- Please enter any other relevant information here --> **✔️ Checklist:** - [x] ⚖️ My code follows the style guidelines of this project - [ ] 👀 I have performed a self-review of my own code - [ ] #️⃣ I have commented my code, particularly in hard-to-understand areas - [ ] 📄 I have made changes to the documentation - [ ] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [ ] ⬆️ I increased versions for any altered app according to semantic versioning - [x] I made sure the title starts with `feat(chart-name):`, `fix(chart-name):`, `chore(chart-name):`, `docs(chart-name):` or `fix(docs):` **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🖼️ I have added an icon in the Chart's root directory called `icon.png` --- _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._ Signed-off-by: Alfred Göppel <43101280+alfi0812@users.noreply.github.com>
3.3 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
- Tailscale Account (Free accounts available at Tailscale's Official website)
- Tailscale DNS setup for Talos Cluster Domain
Generate a Tailscale Auth Key for your setup, easy to generate on the page below
Sysctl
:::note[sysctl]
This part is not needed for CLustertool setup with TalosOS.
:::
At some OS's it is required to set two sysctl values for proper acces to your local network (LAN). Check your OS documentation how this needs to be done.
net.ipv4.ip_forward = 1
net.ipv4.conf.all.src_valid_mark = 1
Tailscale Chart Setup
Application name
Ideally use tailscale but you can use any name here.
App Configuration
Auth Key: Required - The key you received from tailscale in prerequisites aboveHostname: Required - Please specify a specific hostname for use inside Tailscale. This is required to have a persistant machine name appear in the Tailscale portal. Values.yaml has been updated to set hostname to truecharts-tailscale to avoid the state not persisting for those to do not set this field. Without it, the default setting would use the tailscale kubernetes podname as the hostname, creatimg additional machines in the Tailscale portal over time. (Passes--hostname HOSTNAMEtoExtra args)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 Argspasses arguments/flags to thetailscale upcommand.Advertise as exit nodeThis is used to pass traffic through tailscale like a private VPN. (Passes--advertise-exit-nodetoExtra 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
labels:
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.
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"

