File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # scripts/deploy-dashboard.sh
3+
4+ # Build dashboard image
5+ docker build -f docker/dashboard.Dockerfile -t autoshield/dashboard:latest .
6+
7+ # Load into k3d cluster
8+ k3d image import autoshield/dashboard:latest -c autoshield-cluster
9+
10+ # Deploy dashboard
11+ kubectl apply -f deployment/dashboard.yaml
12+
13+ # Deploy monitoring stack (optional)
14+ kubectl apply -f monitoring/prometheus/prometheus.yaml
15+
16+ # Wait for deployment
17+ kubectl wait --for=condition=available deployment/dashboard \
18+ -n autoshield-system --timeout=300s
19+
20+ # Port forward for local access
21+ kubectl port-forward svc/dashboard 8081:8081 -n autoshield-system &
22+ kubectl port-forward svc/dashboard 9090:9090 -n autoshield-system &
23+
24+ echo " Dashboard deployed successfully!"
25+ echo " Access at: http://localhost:8081"
26+ echo " Metrics at: http://localhost:9090/metrics"
You can’t perform that action at this time.
0 commit comments