Skip to content

Commit

Permalink
fix(tailscale) Issue #27349 - [common] Persisting Tailscaleale State (#…
Browse files Browse the repository at this point in the history
…33093)

**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.
-->
Tailscale chart updates to cater for Tailscale state not persisting.
This change sets a Tailscale Hostname in the values.yaml file, values to
enable a persistent machine name to apply and to override the default
config of using the kubernetes podname which will change over time and
with upgrades.

⚒️ Fixes  # <!--(issue)-->
#27349 
Tailscale not persisting state

**⚙️ 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
-->
After applying the hostname value into my helm-release file, an
application update was applied and the hostname persisted in the
Tailscale UI without creating an additional machine.

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [x] ⚖️ My code follows the style guidelines of this project
- [x] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [x] 📄 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
- [x] ⬆️ 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._
  • Loading branch information
itconstruct authored Mar 10, 2025
1 parent 31420ae commit b9d1f97
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/stable/tailscale/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/stable/tailscale
- https://hub.docker.com/r/tailscale/tailscale
type: application
version: 10.12.1
version: 10.12.2
4 changes: 2 additions & 2 deletions charts/stable/tailscale/docs/How-To-Guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ Ideally use `tailscale` but you can use any name here.

### App Configuration

- `Auth Key`: The key you received from tailscale in prerequisites above
- `Auth Key`: Required - The key you received from tailscale in prerequisites above
- `Hostname`: 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 HOSTNAME` to `Extra 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](https://tailscale.com/kb/1112/userspace-networking/).
- `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](https://tailscale.com/kb/1080/cli/#up)
Expand Down
2 changes: 1 addition & 1 deletion charts/stable/tailscale/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ tailscale:
outbound_http_proxy_listen: ""
extra_args: ""
daemon_extra_args: ""
hostname: ""
hostname: "truecharts-tailscale"
advertise_as_exit_node: false
hostNetwork: true
service:
Expand Down

0 comments on commit b9d1f97

Please sign in to comment.