basic proxy ip detection test tool
This commit is contained in:
commit
d3cff15545
15 changed files with 1075 additions and 0 deletions
32
deploy.bat
Normal file
32
deploy.bat
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
@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
|
||||
Loading…
Add table
Add a link
Reference in a new issue