docs: archive entra materials and simplify deployment docs

This commit is contained in:
defiQUG
2026-04-18 12:05:55 -07:00
parent 0f600e6a31
commit bbb6ce6a6c
256 changed files with 4188 additions and 3881 deletions
+12 -29
View File
@@ -21,39 +21,23 @@ if [ "${ENVIRONMENT}" != "prod" ]; then
exit 0
fi
# Update replica counts
log_info "Updating replica counts for production..."
for service in "${SERVICES[@]}"; do
kubectl scale deployment "${service}" \
--replicas=3 \
-n "${NAMESPACE}" \
|| log_warning "Failed to scale ${service}"
done
log_info "Production runtime target: ${ORDER_PORTAL_PUBLIC_VMID} -> ${ORDER_HAPROXY_VMID} -> ${THE_ORDER_PUBLIC_URL}"
# 15.2 Backup Configuration
log_step "15.2 Configuring backups..."
log_step "15.2 Verifying production health..."
curl -fsS "${THE_ORDER_PUBLIC_URL}/api/health" >/dev/null \
&& log_success "Production public health check passed" \
|| log_warning "Production public health check failed"
# Database backups
log_info "Configuring database backups..."
az postgres server backup create \
--resource-group "${AKS_RESOURCE_GROUP}" \
--server-name "${POSTGRES_SERVER_NAME}" \
--backup-name "daily-backup-$(date +%Y%m%d)" \
|| log_warning "Failed to create database backup"
# Storage backups
log_info "Enabling storage versioning..."
az storage account blob-service-properties update \
--account-name "${STORAGE_ACCOUNT_NAME}" \
--enable-versioning true \
|| log_warning "Failed to enable versioning"
log_step "15.3 Backup / DR reminders..."
log_info "Ensure CT backups for ${ORDER_PORTAL_PUBLIC_VMID} and ${ORDER_HAPROXY_VMID} are present in the Proxmox schedule."
log_info "Ensure database backups are configured in the backing datastore used by The Order."
log_info "Production hardening complete"
log_info "Next steps (manual):"
log_info " 1. Configure resource limits in deployments"
log_info " 2. Set up automated backups"
log_info " 3. Configure disaster recovery"
log_info " 4. Review security settings"
log_info " 1. Review CT CPU / memory limits"
log_info " 2. Confirm Proxmox backup coverage"
log_info " 3. Confirm database backup coverage"
log_info " 4. Review public health and uptime monitors"
log_info " 5. Update documentation"
# Save state
@@ -62,4 +46,3 @@ save_state "phase15" "complete"
log_success "=========================================="
log_success "Phase 15: Production Hardening - COMPLETE"
log_success "=========================================="