Compare commits

...

2 Commits

Author SHA1 Message Date
adec591290 Make route advertising configurable 2025-11-22 06:07:36 +01:00
691bab4b0b Automatically add tailscale tag for cluster 2025-11-22 06:07:15 +01:00
2 changed files with 4 additions and 1 deletions

View File

@@ -21,6 +21,7 @@ dns:
ntp: nl.pool.ntp.org ntp: nl.pool.ntp.org
install: true install: true
autoInstall: false autoInstall: false
advertiseRoutes: true
patches: patches:
- !patch hostname - !patch hostname
- !patch install-disk - !patch install-disk

View File

@@ -3,5 +3,7 @@ kind: ExtensionServiceConfig
name: tailscale name: tailscale
environment: environment:
- TS_AUTHKEY={{ config.tailscale.authKey }} - TS_AUTHKEY={{ config.tailscale.authKey }}
- TS_EXTRA_ARGS=--login-server {{ config.tailscale.loginServer }} - TS_EXTRA_ARGS=--login-server {{ config.tailscale.loginServer }} --advertise-tags "tag:cluster-{{ node.cluster.name }}"
{% if node.advertiseRoutes %}
- TS_ROUTES={{ helper.tailscale_subnet(node.gateway, node.netmask) }} - TS_ROUTES={{ helper.tailscale_subnet(node.gateway, node.netmask) }}
{% endif %}