Deploy & Rollback
Deploy & Rollback
Section titled “Deploy & Rollback”Agent Stack Deploy
Section titled “Agent Stack Deploy”# Build + deploy in one stepcd pulsar && uv run pulsar images build agent --env <ENV> --deploy
# Or build then deploy separatelycd pulsar && uv run pulsar images build agent --env <ENV>cd pulsar && uv run pulsar deploy agent --env <ENV> --version <TAG>Production requires explicit confirmation — the CLI will prompt “BUILD PROD” / “DEPLOY TO PROD”.
Core Stack Deploy
Section titled “Core Stack Deploy”# Requires AWS credentialsexport AWS_PROFILE=pulsestream
# Build + deploycd pulsar && uv run pulsar images build core --env <ENV> --deploy
# Single component only (tag must match running deployment)cd pulsar && uv run pulsar images build core --env <ENV> --component frontendEmergency Rollback
Section titled “Emergency Rollback”Option 1: Helm Rollback (fastest)
Section titled “Option 1: Helm Rollback (fastest)”# Check revision historyhelm history pulsestream-agent -n pulsestream-agent-<ENV>
# Roll back to previous revisionhelm rollback pulsestream-agent <REVISION> -n pulsestream-agent-<ENV>Option 2: Deploy Previous Version
Section titled “Option 2: Deploy Previous Version”cd pulsar && uv run pulsar deploy agent --env <ENV> --version <PREVIOUS_TAG>Option 3: Scale Down (circuit breaker)
Section titled “Option 3: Scale Down (circuit breaker)”cd pulsar && uv run pulsar scale down --env <ENV># Investigate, then:cd pulsar && uv run pulsar scale up --env <ENV>Post-Deploy Verification
Section titled “Post-Deploy Verification”- Check pod rollout:
kubectl rollout status deployment/<service> -n <namespace> - Verify health endpoints respond
- Check agent connectivity via MCP:
get_system_health - Monitor error rates in Grafana for 10 minutes
Dry Run
Section titled “Dry Run”Always dry-run first in non-emergency situations:
cd pulsar && uv run pulsar images build agent --env <ENV> --dry-runcd pulsar && uv run pulsar deploy agent --env <ENV> --version <TAG> --dry-run