Skip to main content
This guide explains how to deploy Tyk AI Studio, a secure and extensible AI gateway, using pure Kubernetes manifests.

Prerequisites

  • Kubernetes 1.16+
  • kubectl configured with access to your cluster
  • A TYK_AI_LICENSE string from Tyk Technologies (contact support@tyk.io or your account manager to obtain)
  • A securely generated TYK_AI_SECRET_KEY string for secrets encryption
  • If using SSL/TLS: cert-manager installed in your cluster
Note: The following examples use placeholder values (e.g., 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:
  1. Local Development
  2. Production without TLS
  3. Production with TLS
  4. Production with External Database

Option 1: Local Development Setup

  1. Create a local-deployment.yaml file:
  1. Deploy the application:
  1. Access the application:

Option 2: Production without TLS

For a production deployment without TLS certificates:
  1. Create production-no-tls.yaml:
  1. Deploy:

Option 3: Production with TLS

For a secure production deployment with TLS:
  1. Create production-tls.yaml:
  1. 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

  1. Check pod status:
  1. Check ingress configuration:
  1. View pod details:
  1. 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:
  1. Access the application: Navigate to your configured SITE_URL (e.g., https://app.yourdomain.com)
  2. Register with admin email: Use the EXACT email address you set in the ADMIN_EMAIL environment variable in your Secret
  3. 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_EMAIL environment variable. This user will have full administrative privileges.

Next Steps

Once deployed and you’ve registered your first user, proceed to the First Steps guide to configure Tyk AI Studio.