Install the LiteLLM Gateway Operator
This guide walks you through installing the LiteLLM Gateway Operator (which reconciles AiGateway and ToolGateway resources) on your Kubernetes cluster.
Prerequisites
-
A running Kubernetes cluster with
kubectlconfigured. -
cert-manager installed for webhook TLS. Install it if you have not already:
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/latest/download/cert-manager.yaml kubectl wait --for=condition=ready pod -l app.kubernetes.io/name=cert-manager -n cert-manager --timeout=60sBrowse all cert-manager releases at https://github.com/cert-manager/cert-manager/releases.
-
Agent Runtime Operator installed (provides the required
AiGateway,AiGatewayClass,ToolGateway, andToolGatewayClassCRDs).
Install with kubectl
# Install the operator (always pulls the latest release)
kubectl apply -f https://github.com/agentic-layer/ai-gateway-litellm-operator/releases/latest/download/install.yaml
# Wait for the operator to be ready
kubectl wait --for=condition=Available --timeout=60s -n ai-gateway-litellm-system deployment/ai-gateway-litellm-controller-manager
Browse all releases at https://github.com/agentic-layer/ai-gateway-litellm-operator/releases
Install with Flux
If you are using Flux for GitOps, install the operator via its OCI repository:
apiVersion: source.toolkit.fluxcd.io/v1
kind: OCIRepository
metadata:
name: ai-gateway-litellm-operator
namespace: flux-system
spec:
interval: 5m
url: oci://ghcr.io/agentic-layer/manifests/ai-gateway-litellm-operator
ref:
semver: ">= 0, < 1"
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: ai-gateway-litellm-operator
namespace: flux-system
spec:
sourceRef:
kind: OCIRepository
name: ai-gateway-litellm-operator
interval: 10m
path: ./
prune: true
wait: true
dependsOn:
# Ensure cert-manager is installed first (if you install it with Flux as well)
- name: cert-manager