Prerequisites
- Kubernetes 1.16+
- kubectl configured with access to your cluster
- A
TYK_AI_LICENSEstring from Tyk Technologies (contact [email protected] or your account manager to obtain) - A securely generated
TYK_AI_SECRET_KEYstring for secrets encryption - If using SSL/TLS: cert-manager installed in your cluster
your-domain.com, your-secret-key). Remember to replace these with your actual configuration values.
Installation Options
Tyk AI Studio can be deployed in several configurations:- Local Development
- Production without TLS
- Production with TLS
- Production with External Database
Option 1: Local Development Setup
- Create a
local-deployment.yamlfile:
- Deploy the application:
- Access the application:
- Web Interface: http://localhost:32580
- Gateway: http://localhost:32590
Option 2: Production without TLS
For a production deployment without TLS certificates:- Create
production-no-tls.yaml:
- Deploy:
Option 3: Production with TLS
For a secure production deployment with TLS:- Create
production-tls.yaml:
- Deploy:
Optional Components
Reranker Service
The Reranker service improves RAG result relevance. Add it to your deployment:Transformer Server
The Transformer Server handles embedding generation and model inference. Add it to your deployment:Database Options
Using Internal PostgreSQL
For development or small deployments, you can deploy PostgreSQL within your cluster:Using External Database
For production environments, configure your external database connection in the Secret:Maintenance
Upgrading
To upgrade an existing installation:Uninstalling
To remove the deployment:Viewing Logs
Troubleshooting
- Check pod status:
- Check ingress configuration:
- View pod details:
- Common issues:
- Database connection failures: Check credentials and network access
- Ingress not working: Verify DNS records and TLS configuration
- Resource constraints: Check pod resource limits and node capacity
First User Registration
After deployment, you need to create your first admin user:-
Access the application: Navigate to your configured
SITE_URL(e.g.,https://app.yourdomain.com) -
Register with admin email: Use the EXACT email address you set in the
ADMIN_EMAILenvironment variable in your Secret -
Complete registration: The first user who registers with the admin email will automatically become the administrator
Important: The first user registration must use the same email address specified in the
ADMIN_EMAILenvironment variable. This user will have full administrative privileges.