CRD Reference
The LiteLLM Operator defines nine Custom Resource Definitions in the litellm.palena.ai/v1alpha1 API group.
Overview
| CRD | Short Name | Scope | Description |
|---|---|---|---|
| LiteLLMInstance | li | Namespaced | Primary CRD. Deploys LiteLLM proxy infrastructure |
| LiteLLMOrganization | lo | Namespaced | Creates an organization for multi-tenant isolation |
| LiteLLMModel | lm | Namespaced | Registers an AI model with the proxy |
| LiteLLMTeam | lt | Namespaced | Creates a team with budget and member management |
| LiteLLMUser | lu | Namespaced | Creates a user (non-SSO environments) |
| LiteLLMCustomer | lcust | Namespaced | Creates an external end-user with budgets and rate limits |
| LiteLLMCredential | lc | Namespaced | Declares a reusable provider credential materialized into credential_list |
| LiteLLMGuardrail | lg | Namespaced | Declares a content moderation / safety guardrail materialized into guardrails |
| LiteLLMBudget | lb | Namespaced | Declares a reusable budget / rate-limit tier via /budget/*, referenced by budgetId |
| LiteLLMVirtualKey | lk | Namespaced | Generates a scoped API key |
Relationship Diagram
LiteLLMInstance
├── LiteLLMOrganization (instanceRef → LiteLLMInstance)
│ └── LiteLLMTeam (organizationRef → LiteLLMOrganization)
├── LiteLLMCredential (instanceRef → LiteLLMInstance) — reusable provider creds
├── LiteLLMGuardrail (instanceRef → LiteLLMInstance) — content moderation / safety
├── LiteLLMModel (instanceRef → LiteLLMInstance, credentialRef → LiteLLMCredential)
├── LiteLLMTeam (instanceRef → LiteLLMInstance) — guardrails: [lg-name, ...]
├── LiteLLMUser (instanceRef → LiteLLMInstance, teamRef → LiteLLMTeam)
├── LiteLLMCustomer (instanceRef → LiteLLMInstance) — external end-users
└── LiteLLMVirtualKey (instanceRef → LiteLLMInstance, teamRef → LiteLLMTeam, userRef → LiteLLMUser) — guardrails: [lg-name, ...]All secondary CRDs reference a LiteLLMInstance in the same namespace via spec.instanceRef. Teams can optionally reference a LiteLLMOrganization via spec.organizationRef. Models can reference a LiteLLMCredential via spec.litellmParams.credentialRef to reuse shared provider credentials instead of inlining API keys. Teams and virtual keys can opt in to specific LiteLLMGuardrail resources by name via spec.guardrails (enterprise feature). The operator resolves these references to find the LiteLLM API endpoint, master key, and organization ID.
Common Types
These types are shared across multiple CRDs:
SecretKeyRef
References a specific key within a Kubernetes Secret.
secretRef:
name: my-secret # Secret name
key: my-key # Key within the SecretInstanceRef
References a LiteLLMInstance in the same namespace.
instanceRef:
name: my-gateway # LiteLLMInstance nameQuick Reference
# List all resources
kubectl get li,lo,lm,lt,lu,lcust,lc,lg,lk
# Watch a specific type
kubectl get litellmmodels -w
# Describe a resource
kubectl describe litellminstance my-gateway