This commit is contained in:
Ho Ngoc Hai
2025-12-27 01:31:10 +07:00
commit 4da46b5b8e
205 changed files with 21063 additions and 0 deletions

23
scripts/deploy/deploy-prod.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
set -e
echo "⚠️ WARNING: You are about to deploy to PRODUCTION!"
read -p "Are you sure? (yes/no): " confirm
if [ "$confirm" != "yes" ]; then
echo "Deployment cancelled"
exit 1
fi
echo "🚀 Deploying to production..."
if [ -z "$KUBECONFIG" ]; then
echo "❌ KUBECONFIG environment variable not set"
exit 1
fi
kubectl apply -f deployments/production/kubernetes/
kubectl rollout status deployment/auth-service -n production
echo "✅ Deployment completed!"