Replace Ansible port-forwarding + tailscale serve with direct Tailscale LB services matching the existing Rancher pattern. Each service gets its own tailnet hostname (grafana/prometheus/flux.silverside-gopher.ts.net).
19 lines
388 B
YAML
19 lines
388 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: prometheus-tailscale
|
|
namespace: observability
|
|
annotations:
|
|
tailscale.com/hostname: prometheus
|
|
tailscale.com/proxy-class: infra-stable
|
|
spec:
|
|
type: LoadBalancer
|
|
loadBalancerClass: tailscale
|
|
selector:
|
|
app.kubernetes.io/name: prometheus
|
|
ports:
|
|
- name: http
|
|
port: 9090
|
|
protocol: TCP
|
|
targetPort: 9090
|