Skip to main content
Deploy the Portkey AI Gateway to Kubernetes for production-grade orchestration, scaling, and high availability.

Quick Deployment

Deploy using the official Kubernetes manifest:
1

Download the manifest

Download the deployment manifest from the repository:
2

Apply the manifest

Deploy to your Kubernetes cluster:
3

Verify deployment

Check the deployment status:

Kubernetes Manifest

The complete deployment configuration:
deployment.yaml

Production Configuration

Resource Limits

Add resource requests and limits for production:

Health Checks

Add liveness and readiness probes:

Environment Variables

Add configuration via environment variables:

Secrets Management

Store sensitive data in Kubernetes secrets:
Reference in deployment:

Scaling

Horizontal Pod Autoscaling

Automatically scale based on CPU/memory:
hpa.yaml
Apply the HPA:

Manual Scaling

Scale replicas manually:

Ingress Configuration

Nginx Ingress

Expose the gateway via Nginx Ingress:
ingress.yaml

Traefik Ingress

For Traefik users:
ingress-traefik.yaml

Storage

ConfigMap for Configuration

Store configuration files:
configmap.yaml
Mount in deployment:

Persistent Storage

Add persistent volume for logs:
pvc.yaml

Monitoring

Prometheus Metrics

Add Prometheus annotations:

Service Monitor

For Prometheus Operator:
servicemonitor.yaml

Helm Chart

Create a Helm chart for easier management:

values.yaml

values.yaml

Cluster Management

View Logs

Execute Commands

Port Forwarding

Access the gateway locally:

Updates and Rollbacks

Update Deployment

Rollback

Cleanup

Remove the deployment:

Next Steps

Helm Charts

Learn about Kubernetes Helm charts

Monitoring

Set up monitoring and observability