Important
The Self-Hosted Full Platform deployment option requires an Enterprise plan.
Prerequisites
- You are using Kubernetes.
- You have self-hosted LangSmith deployed.
- Use the LangGraph CLI to test your application locally.
- Use the LangGraph CLI to build a Docker image (i.e.
langgraph build
) and push it to a registry your Kubernetes cluster has access to. KEDA
is installed on your cluster.
- Ingress Configuration
- You must set up an ingress for your LangSmith instance. All agents will be deployed as Kubernetes services behind this ingress.
- You can use this guide to set up an ingress for your instance.
- You have slack space in your cluster for multiple deployments.
Cluster-Autoscaler
is recommended to automatically provision new nodes. - A valid Dynamic PV provisioner or PVs available on your cluster. You can verify this by running:
- Egress to
https://beacon.langchain.com
from your network. This is required for license verification and usage reporting if not running in air-gapped mode. See the Egress documentation for more details.
Setup
- As part of configuring your Self-Hosted LangSmith instance, you enable the
langgraphPlatform
option. This will provision a few key resources.listener
: This is a service that listens to the control plane for changes to your deployments and creates/updates downstream CRDs.LangGraphPlatform CRD
: A CRD for LangGraph Platform deployments. This contains the spec for managing an instance of a LangGraph platform deployment.operator
: This operator handles changes to your LangGraph Platform CRDs.host-backend
: This is the control plane.
- Two additional images will be used by the chart. Use the images that are specified in the latest release.
- In your config file for langsmith (usually
langsmith_config.yaml
), enable thelanggraphPlatform
option. Note that you must also have a valid ingress setup:
- In your
values.yaml
file, configure thehostBackendImage
andoperatorImage
options (if you need to mirror images) - You can also configure base templates for your agents by overriding the base templates here.
- You create a deployment from the control plane UI.