🔗 Add Grafana route to Traefik
Some checks failed
Infrastructure CI/CD / Validate Infrastructure (push) Failing after 7s
Infrastructure CI/CD / Plan Infrastructure (push) Has been skipped
Infrastructure CI/CD / Apply Infrastructure (push) Has been skipped
Simple Test / test (push) Successful in 2s

 Added Grafana service and router configuration:
- Service: grafana-cluster → http://influxdb.tailnet-68f9.ts.net:3000
- Router: grafana-ui → Host(grafana.git-4ta.live)
- Health check: /api/health endpoint
- SSL: Cloudflare certificate resolver

🌐 Access URL: https://grafana.git-4ta.live
- Redirects to /login (working correctly)
- Full SSL/TLS support via Cloudflare

Deployed and tested successfully 
This commit is contained in:
2025-10-12 09:17:33 +00:00
parent 1eafce7290
commit 05979bdc03

View File

@@ -165,6 +165,15 @@ http:
interval: "30s"
timeout: "15s"
grafana-cluster:
loadBalancer:
servers:
- url: "http://influxdb.tailnet-68f9.ts.net:3000" # Grafana服务
healthCheck:
path: "/api/health"
interval: "30s"
timeout: "15s"
routers:
consul-api:
rule: "Host(`consul.git-4ta.live`)"
@@ -226,6 +235,14 @@ http:
- websecure
tls:
certResolver: cloudflare
grafana-ui:
rule: "Host(`grafana.git-4ta.live`)"
service: grafana-cluster
entryPoints:
- websecure
tls:
certResolver: cloudflare
EOF
destination = "local/dynamic.yml"
}