fix: Reserve Tailscale service hostnames and tag exposed proxies
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:
@@ -122,6 +122,9 @@
|
|||||||
vars:
|
vars:
|
||||||
tailscale_reserved_hostnames:
|
tailscale_reserved_hostnames:
|
||||||
- rancher
|
- rancher
|
||||||
|
- grafana
|
||||||
|
- prometheus
|
||||||
|
- flux
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- tailscale-cleanup
|
- tailscale-cleanup
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ metadata:
|
|||||||
namespace: flux-system
|
namespace: flux-system
|
||||||
annotations:
|
annotations:
|
||||||
tailscale.com/hostname: flux
|
tailscale.com/hostname: flux
|
||||||
|
tailscale.com/tags: "tag:prod,tag:flux"
|
||||||
tailscale.com/proxy-class: infra-stable
|
tailscale.com/proxy-class: infra-stable
|
||||||
spec:
|
spec:
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ metadata:
|
|||||||
namespace: observability
|
namespace: observability
|
||||||
annotations:
|
annotations:
|
||||||
tailscale.com/hostname: grafana
|
tailscale.com/hostname: grafana
|
||||||
|
tailscale.com/tags: "tag:prod,tag:grafana"
|
||||||
tailscale.com/proxy-class: infra-stable
|
tailscale.com/proxy-class: infra-stable
|
||||||
spec:
|
spec:
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ metadata:
|
|||||||
namespace: observability
|
namespace: observability
|
||||||
annotations:
|
annotations:
|
||||||
tailscale.com/hostname: prometheus
|
tailscale.com/hostname: prometheus
|
||||||
|
tailscale.com/tags: "tag:prod,tag:prometheus"
|
||||||
tailscale.com/proxy-class: infra-stable
|
tailscale.com/proxy-class: infra-stable
|
||||||
spec:
|
spec:
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ metadata:
|
|||||||
namespace: cattle-system
|
namespace: cattle-system
|
||||||
annotations:
|
annotations:
|
||||||
tailscale.com/hostname: rancher
|
tailscale.com/hostname: rancher
|
||||||
|
tailscale.com/tags: "tag:prod,tag:rancher"
|
||||||
tailscale.com/proxy-class: infra-stable
|
tailscale.com/proxy-class: infra-stable
|
||||||
spec:
|
spec:
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
|
|||||||
Reference in New Issue
Block a user