mirror of
https://github.com/wahyd4/passkey-auth.git
synced 2026-08-09 04:15:55 +10:00
- Complete WebAuthn/FIDO2 authentication implementation - SQLite database with user and credential management - Email-based user identification with allowlist support - Admin approval workflow for new users - Session management with secure cookies - Docker containerization with Debian base for SQLite compatibility - Kubernetes deployment manifests with nginx ingress support - Web-based admin interface for user management - Comprehensive documentation and deployment guides - Standard open source project structure with CI/CD
34 lines
849 B
Bash
34 lines
849 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
echo "🚀 Deploying Passkey Auth to Kubernetes..."
|
|
|
|
# Check if kubectl is available
|
|
if ! command -v kubectl &> /dev/null; then
|
|
echo "❌ kubectl is not installed or not in PATH"
|
|
exit 1
|
|
fi
|
|
|
|
# Create namespace
|
|
echo "Creating namespace..."
|
|
kubectl apply -f k8s/namespace.yaml
|
|
|
|
# Deploy the application
|
|
echo "Deploying application..."
|
|
kubectl apply -f k8s/deployment.yaml
|
|
|
|
# Wait for deployment to be ready
|
|
echo "Waiting for deployment to be ready..."
|
|
kubectl wait --for=condition=available --timeout=300s deployment/passkey-auth -n passkey-auth
|
|
|
|
echo "✅ Deployment complete!"
|
|
echo ""
|
|
echo "To check the status:"
|
|
echo " kubectl get pods -n passkey-auth"
|
|
echo ""
|
|
echo "To view logs:"
|
|
echo " kubectl logs -f deployment/passkey-auth -n passkey-auth"
|
|
echo ""
|
|
echo "To configure nginx ingress, see k8s/ingress-example.yaml"
|