proxy-detection/deploy.bat

32 lines
860 B
Batchfile

@echo off
echo 🚀 Deploying Proxy Detection API to Kubernetes...
REM Apply secret (API key)
echo 📋 Creating secret...
kubectl apply -f k8s-secret.yaml
REM Apply deployment and service
echo 🔧 Deploying application...
kubectl apply -f k8s-deployment.yaml
REM Optional: Apply ingress
set /p deploy_ingress="Do you want to deploy ingress? (y/N): "
if /i "%deploy_ingress%"=="y" (
echo 🌐 Deploying ingress...
kubectl apply -f k8s-ingress.yaml
)
REM Check deployment status
echo 📊 Checking deployment status...
kubectl rollout status deployment/proxy-detection-api
REM Show service info
echo 📋 Service information:
kubectl get service proxy-detection-service
echo ✅ Deployment completed!
echo 💡 To test the API:
echo kubectl port-forward service/proxy-detection-service 8080:80
echo curl http://localhost:8080/health
pause