Skip to content

HeliosDB Deployment Quick Reference

HeliosDB Deployment Quick Reference

One-Line Deployments

Terminal window
# Rolling deployment (default)
./scripts/deploy/deploy.sh --environment production --version 7.0.1
# Blue-green deployment
./scripts/deploy/deploy.sh --environment production --version 7.0.1 --strategy blue-green
# Canary deployment
./scripts/deploy/deploy.sh --environment production --version 7.0.1 --strategy canary
# Dry run
./scripts/deploy/deploy.sh --environment production --version 7.0.1 --dry-run

Quick Operations

Terminal window
# Rollback
./scripts/deploy/rollback.sh --environment production
# Health check
./scripts/deploy/health-check.sh --namespace heliosdb
# Scale
./scripts/deploy/scale.sh --replicas 7
# Enable autoscaling
./scripts/deploy/scale.sh --enable-hpa --min 5 --max 15 --cpu-target 70

Infrastructure Setup

Terminal window
# Deploy infrastructure
cd infrastructure/terraform
terraform init
terraform apply -var-file="environments/production.tfvars"
# Configure kubectl
aws eks update-kubeconfig --name heliosdb-production-cluster --region us-west-2
# Verify
kubectl cluster-info
kubectl get nodes

File Locations

Infrastructure

  • Terraform: /home/claude/HeliosDB/infrastructure/terraform/
  • Modules: /home/claude/HeliosDB/infrastructure/terraform/modules/

Deployment

  • Scripts: /home/claude/HeliosDB/scripts/deploy/
  • Helm Chart: /home/claude/HeliosDB/helm/heliosdb-prod/
  • K8s Manifests: /home/claude/HeliosDB/k8s/production/

Automation

  • GitHub Actions: /home/claude/HeliosDB/.github/workflows/

Documentation

  • Deployment Guides: /home/claude/HeliosDB/docs/deployment/
  • Infrastructure README: /home/claude/HeliosDB/infrastructure/README.md
  • Summary: /home/claude/HeliosDB/DEPLOYMENT_INFRASTRUCTURE_SUMMARY.md

Key Scripts

ScriptPurposeLocation
deploy.shMain deployment (3 strategies)/scripts/deploy/
rollback.shRollback to previous version/scripts/deploy/
health-check.shComprehensive health checks/scripts/deploy/
scale.shScaling operations/scripts/deploy/

Terraform Modules

ModulePurposeFiles
vpcMulti-AZ VPCmain.tf, variables.tf, outputs.tf
eksKubernetes clustermain.tf, variables.tf, outputs.tf, user-data.sh
rdsPostgreSQL 17main.tf, variables.tf, outputs.tf
elasticacheRedis 7.1main.tf, variables.tf, outputs.tf
s3Buckets (backup/logs)main.tf, variables.tf, outputs.tf
iamIRSA rolesmain.tf, variables.tf, outputs.tf
route53DNSmain.tf, variables.tf, outputs.tf
monitoringCloudWatchmain.tf, variables.tf, outputs.tf
security-groupsNetwork ACLsmain.tf, variables.tf, outputs.tf

Deployment Strategies

StrategyUse CaseResourcesRollback
RollingMinor updatesNo extraAutomatic
Blue-GreenMajor updates2x tempInstant
CanaryRisky changes+1 replicaAny phase

Health Check Endpoints

  • PostgreSQL: <endpoint>:5432
  • MySQL: <endpoint>:3306
  • HTTP API: https://<endpoint>:8443/health
  • Metrics: http://<endpoint>:9090/metrics

Monitoring

Terminal window
# Prometheus
kubectl port-forward -n monitoring svc/prometheus-server 9090:80
# Grafana
kubectl port-forward -n monitoring svc/prometheus-grafana 3000:80
# Metrics
kubectl top pods -n heliosdb
kubectl top nodes

Common Issues

Terminal window
# Pods not ready
kubectl get pods -n heliosdb
kubectl logs -n heliosdb <pod-name>
kubectl describe pod -n heliosdb <pod-name>
# Service unreachable
kubectl get svc,endpoints -n heliosdb
kubectl get ingress -n heliosdb
# Resource issues
kubectl top pods -n heliosdb
./scripts/deploy/scale.sh --replicas 7

Production Checklist

  • Customize Terraform variables in environments/production.tfvars
  • Deploy infrastructure: terraform apply
  • Configure kubectl with cluster
  • Test in staging first
  • Review deployment strategy
  • Configure monitoring alerts
  • Set up notifications (Slack/PagerDuty)
  • Train operations team
  • Document runbooks
  • Deploy to production

Support

  • Docs: /docs/deployment/
  • Infrastructure: /infrastructure/terraform/
  • Scripts: /scripts/deploy/
  • Ops: ops-oncall@example.com
  • Slack: #heliosdb-ops