feat: Expose Grafana, Prometheus, and Flux UI via Tailscale LoadBalancer services
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).
This commit is contained in:
18
infrastructure/addons/flux-ui/flux-tailscale-service.yaml
Normal file
18
infrastructure/addons/flux-ui/flux-tailscale-service.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: flux-tailscale
|
||||
namespace: flux-system
|
||||
annotations:
|
||||
tailscale.com/hostname: flux
|
||||
tailscale.com/proxy-class: infra-stable
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
loadBalancerClass: tailscale
|
||||
selector:
|
||||
app.kubernetes.io/name: weave-gitops
|
||||
ports:
|
||||
- name: http
|
||||
port: 9001
|
||||
protocol: TCP
|
||||
targetPort: 9001
|
||||
@@ -1,19 +0,0 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: flux-ui
|
||||
namespace: flux-system
|
||||
annotations:
|
||||
traefik.ingress.kubernetes.io/router.entrypoints: flux
|
||||
spec:
|
||||
ingressClassName: traefik
|
||||
rules:
|
||||
- http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: flux-system-weave-gitops
|
||||
port:
|
||||
number: 9001
|
||||
@@ -4,4 +4,4 @@ resources:
|
||||
- cluster-user-auth-externalsecret.yaml
|
||||
- gitrepository-weave-gitops.yaml
|
||||
- helmrelease-weave-gitops.yaml
|
||||
- ingress-flux-ui.yaml
|
||||
- flux-tailscale-service.yaml
|
||||
|
||||
Reference in New Issue
Block a user