Skip to content

Commit 083d5ac

Browse files
Deployment Script for dashboard
1 parent c6390ab commit 083d5ac

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/scripts/deploy-dashboard.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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"

0 commit comments

Comments
 (0)