fix: Reserve Tailscale service hostnames and tag exposed proxies
All checks were successful
Deploy Cluster / Terraform (push) Successful in 53s
Deploy Cluster / Ansible (push) Successful in 6m3s

Reserve grafana/prometheus/flux alongside rancher during rebuild cleanup so
stale tailnet devices do not force -1 hostnames. Tag the exposed Tailscale
services so operator-managed proxies are provisioned with explicit prod/service
tags from the tailnet policy.
This commit is contained in:
2026-04-18 05:48:26 +00:00
parent ceefcc3b29
commit 68dbd2e5b7
5 changed files with 7 additions and 0 deletions

View File

@@ -122,6 +122,9 @@
vars:
tailscale_reserved_hostnames:
- rancher
- grafana
- prometheus
- flux
roles:
- tailscale-cleanup

View File

@@ -5,6 +5,7 @@ metadata:
namespace: flux-system
annotations:
tailscale.com/hostname: flux
tailscale.com/tags: "tag:prod,tag:flux"
tailscale.com/proxy-class: infra-stable
spec:
type: LoadBalancer

View File

@@ -5,6 +5,7 @@ metadata:
namespace: observability
annotations:
tailscale.com/hostname: grafana
tailscale.com/tags: "tag:prod,tag:grafana"
tailscale.com/proxy-class: infra-stable
spec:
type: LoadBalancer

View File

@@ -5,6 +5,7 @@ metadata:
namespace: observability
annotations:
tailscale.com/hostname: prometheus
tailscale.com/tags: "tag:prod,tag:prometheus"
tailscale.com/proxy-class: infra-stable
spec:
type: LoadBalancer

View File

@@ -5,6 +5,7 @@ metadata:
namespace: cattle-system
annotations:
tailscale.com/hostname: rancher
tailscale.com/tags: "tag:prod,tag:rancher"
tailscale.com/proxy-class: infra-stable
spec:
type: LoadBalancer