basic proxy ip detection test tool

This commit is contained in:
Bojan Kucera 2025-06-05 21:14:29 -04:00
commit d3cff15545
15 changed files with 1075 additions and 0 deletions

33
deploy.sh Normal file
View file

@ -0,0 +1,33 @@
#!/bin/bash
# Simple Kubernetes deployment script
echo "🚀 Deploying Proxy Detection API to Kubernetes..."
# Apply secret (API key)
echo "📋 Creating secret..."
kubectl apply -f k8s-secret.yaml
# Apply deployment and service
echo "🔧 Deploying application..."
kubectl apply -f k8s-deployment.yaml
# Optional: Apply ingress
read -p "Do you want to deploy ingress? (y/N): " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
echo "🌐 Deploying ingress..."
kubectl apply -f k8s-ingress.yaml
fi
# Check deployment status
echo "📊 Checking deployment status..."
kubectl rollout status deployment/proxy-detection-api
# 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"