Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions charts/langgraph-dataplane/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ maintainers:
email: ankush@langchain.dev
description: Helm chart to deploy a langgraph dataplane on kubernetes.
type: application
version: 0.2.7
appVersion: "0.11.57"
version: 0.2.8
appVersion: "0.11.68"
11 changes: 6 additions & 5 deletions charts/langgraph-dataplane/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# langgraph-dataplane

![Version: 0.2.7](https://img.shields.io/badge/Version-0.2.7-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.11.57](https://img.shields.io/badge/AppVersion-0.11.57-informational?style=flat-square)
![Version: 0.2.8](https://img.shields.io/badge/Version-0.2.8-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.11.68](https://img.shields.io/badge/AppVersion-0.11.68-informational?style=flat-square)

Helm chart to deploy a langgraph dataplane on kubernetes.

Expand All @@ -23,10 +23,10 @@ You can find the guide to deploy a LangGraph Dataplane [here](https://langchain-
| images.imagePullSecrets | list | `[]` | Secrets with credentials to pull images from a private registry. Specified as name: value. |
| images.listenerImage.pullPolicy | string | `"IfNotPresent"` | |
| images.listenerImage.repository | string | `"docker.io/langchain/hosted-langserve-backend"` | |
| images.listenerImage.tag | string | `"0.11.57"` | |
| images.listenerImage.tag | string | `"0.11.68"` | |
| images.operatorImage.pullPolicy | string | `"IfNotPresent"` | |
| images.operatorImage.repository | string | `"docker.io/langchain/langgraph-operator"` | |
| images.operatorImage.tag | string | `"0.1.11"` | |
| images.operatorImage.tag | string | `"0.1.16"` | |
| images.redisImage.pullPolicy | string | `"IfNotPresent"` | |
| images.redisImage.repository | string | `"docker.io/redis"` | |
| images.redisImage.tag | string | `"7"` | |
Expand All @@ -41,6 +41,7 @@ You can find the guide to deploy a LangGraph Dataplane [here](https://langchain-
| ingress.metricsPrefix | string | `""` | Set a prefix if using multiple ingresses pointed at the same hostname |
| ingress.tls | list | `[]` | |
| ingress.tlsEnabled | bool | `true` | |
| istioGateway | object | `{"enabled":false,"hostname":"","name":"","namespace":""}` | Whether to use Istio VirtualServices for ingress. Will create a VirtualService for each LangGraph platform deployment. Recommended for production use / if deploying multiple releases in the same cluster. |
| nameOverride | string | `""` | Provide a name in place of `langgraphDataplane` |
| namespace | string | `""` | Namespace to install the chart into. If not set, will use the namespace of the current context. |
| operator.createCRDs | bool | `true` | |
Expand Down Expand Up @@ -83,7 +84,7 @@ You can find the guide to deploy a LangGraph Dataplane [here](https://langchain-
| operator.serviceAccount.labels | object | `{}` | |
| operator.serviceAccount.name | string | `""` | |
| operator.templates.db | string | `"apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n name: ${service_name}\nspec:\n serviceName: ${service_name}\n replicas: ${replicas}\n selector:\n matchLabels:\n app: ${service_name}\n persistentVolumeClaimRetentionPolicy:\n whenDeleted: Delete\n whenScaled: Retain\n template:\n metadata:\n labels:\n app: ${service_name}\n spec:\n containers:\n - name: postgres\n image: pgvector/pgvector:pg15\n ports:\n - containerPort: 5432\n command: [\"docker-entrypoint.sh\"]\n args:\n - postgres\n - -c\n - max_connections=${max_connections}\n env:\n - name: POSTGRES_PASSWORD\n valueFrom:\n secretKeyRef:\n name: ${secret_name}\n key: POSTGRES_PASSWORD\n - name: POSTGRES_USER\n value: ${postgres_user}\n - name: POSTGRES_DB\n value: ${postgres_db}\n - name: PGDATA\n value: /var/lib/postgresql/data/pgdata\n volumeMounts:\n - name: postgres-data\n mountPath: /var/lib/postgresql/data\n resources:\n requests:\n cpu: \"${cpu}\"\n memory: \"${memory_mb}Mi\"\n limits:\n cpu: \"${cpu_limit}\"\n memory: \"${memory_limit}Mi\"\n enableServiceLinks: false\n volumeClaimTemplates:\n - metadata:\n name: postgres-data\n spec:\n accessModes: [\"ReadWriteOnce\"]\n resources:\n requests:\n storage: \"${storage_gi}Gi\"\n"` | |
| operator.templates.deployment | string | `"apiVersion: apps/v1\nkind: Deployment\nmetadata:\n name: ${name}\n namespace: ${namespace}\nspec:\n replicas: ${replicas}\n selector:\n matchLabels:\n app: ${name}\n template:\n metadata:\n labels:\n app: ${name}\n spec:\n enableServiceLinks: false\n containers:\n - name: api-server\n image: ${image}\n ports:\n - name: api-server\n containerPort: 8000\n protocol: TCP\n livenessProbe:\n httpGet:\n path: /ok?check_db=1\n port: 8000\n initialDelaySeconds: 90\n periodSeconds: 5\n timeoutSeconds: 5\n readinessProbe:\n httpGet:\n path: /ok\n port: 8000\n initialDelaySeconds: 90\n periodSeconds: 5\n timeoutSeconds: 5\n"` | |
| operator.templates.deployment | string | `"apiVersion: apps/v1\nkind: Deployment\nmetadata:\n name: ${name}\n namespace: ${namespace}\nspec:\n replicas: ${replicas}\n selector:\n matchLabels:\n app: ${name}\n template:\n metadata:\n labels:\n app: ${name}\n spec:\n enableServiceLinks: false\n containers:\n - name: api-server\n image: ${image}\n ports:\n - name: api-server\n containerPort: 8000\n protocol: TCP\n livenessProbe:\n httpGet:\n path: /ok\n port: 8000\n periodSeconds: 15\n timeoutSeconds: 5\n failureThreshold: 6\n readinessProbe:\n httpGet:\n path: /ok\n port: 8000\n periodSeconds: 15\n timeoutSeconds: 5\n failureThreshold: 6\n"` | |
| operator.templates.redis | string | `"apiVersion: apps/v1\nkind: Deployment\nmetadata:\n name: ${service_name}\nspec:\n replicas: 1\n selector:\n matchLabels:\n app: ${service_name}\n template:\n metadata:\n labels:\n app: ${service_name}\n spec:\n containers:\n - name: redis\n image: redis:6\n ports:\n - containerPort: 6379\n livenessProbe:\n exec:\n command:\n - redis-cli\n - ping\n initialDelaySeconds: 30\n periodSeconds: 10\n readinessProbe:\n tcpSocket:\n port: 6379\n initialDelaySeconds: 10\n periodSeconds: 5\n resources:\n requests:\n cpu: \"1\"\n memory: \"2048Mi\"\n limits:\n cpu: \"1\"\n memory: \"2048Mi\"\n enableServiceLinks: false\n"` | |
| operator.templates.service | string | `"apiVersion: v1\nkind: Service\nmetadata:\n name: ${name}\n namespace: ${namespace}\nspec:\n type: ClusterIP\n selector:\n app: ${name}\n ports:\n - name: api-server\n protocol: TCP\n port: 8000\n targetPort: 8000\n"` | |
| operator.watchNamespaces | string | `""` | |
Expand Down Expand Up @@ -205,7 +206,7 @@ You can find the guide to deploy a LangGraph Dataplane [here](https://langchain-
| operator.serviceAccount.labels | object | `{}` | |
| operator.serviceAccount.name | string | `""` | |
| operator.templates.db | string | `"apiVersion: apps/v1\nkind: StatefulSet\nmetadata:\n name: ${service_name}\nspec:\n serviceName: ${service_name}\n replicas: ${replicas}\n selector:\n matchLabels:\n app: ${service_name}\n persistentVolumeClaimRetentionPolicy:\n whenDeleted: Delete\n whenScaled: Retain\n template:\n metadata:\n labels:\n app: ${service_name}\n spec:\n containers:\n - name: postgres\n image: pgvector/pgvector:pg15\n ports:\n - containerPort: 5432\n command: [\"docker-entrypoint.sh\"]\n args:\n - postgres\n - -c\n - max_connections=${max_connections}\n env:\n - name: POSTGRES_PASSWORD\n valueFrom:\n secretKeyRef:\n name: ${secret_name}\n key: POSTGRES_PASSWORD\n - name: POSTGRES_USER\n value: ${postgres_user}\n - name: POSTGRES_DB\n value: ${postgres_db}\n - name: PGDATA\n value: /var/lib/postgresql/data/pgdata\n volumeMounts:\n - name: postgres-data\n mountPath: /var/lib/postgresql/data\n resources:\n requests:\n cpu: \"${cpu}\"\n memory: \"${memory_mb}Mi\"\n limits:\n cpu: \"${cpu_limit}\"\n memory: \"${memory_limit}Mi\"\n enableServiceLinks: false\n volumeClaimTemplates:\n - metadata:\n name: postgres-data\n spec:\n accessModes: [\"ReadWriteOnce\"]\n resources:\n requests:\n storage: \"${storage_gi}Gi\"\n"` | |
| operator.templates.deployment | string | `"apiVersion: apps/v1\nkind: Deployment\nmetadata:\n name: ${name}\n namespace: ${namespace}\nspec:\n replicas: ${replicas}\n selector:\n matchLabels:\n app: ${name}\n template:\n metadata:\n labels:\n app: ${name}\n spec:\n enableServiceLinks: false\n containers:\n - name: api-server\n image: ${image}\n ports:\n - name: api-server\n containerPort: 8000\n protocol: TCP\n livenessProbe:\n httpGet:\n path: /ok?check_db=1\n port: 8000\n initialDelaySeconds: 90\n periodSeconds: 5\n timeoutSeconds: 5\n readinessProbe:\n httpGet:\n path: /ok\n port: 8000\n initialDelaySeconds: 90\n periodSeconds: 5\n timeoutSeconds: 5\n"` | |
| operator.templates.deployment | string | `"apiVersion: apps/v1\nkind: Deployment\nmetadata:\n name: ${name}\n namespace: ${namespace}\nspec:\n replicas: ${replicas}\n selector:\n matchLabels:\n app: ${name}\n template:\n metadata:\n labels:\n app: ${name}\n spec:\n enableServiceLinks: false\n containers:\n - name: api-server\n image: ${image}\n ports:\n - name: api-server\n containerPort: 8000\n protocol: TCP\n livenessProbe:\n httpGet:\n path: /ok\n port: 8000\n periodSeconds: 15\n timeoutSeconds: 5\n failureThreshold: 6\n readinessProbe:\n httpGet:\n path: /ok\n port: 8000\n periodSeconds: 15\n timeoutSeconds: 5\n failureThreshold: 6\n"` | |
| operator.templates.redis | string | `"apiVersion: apps/v1\nkind: Deployment\nmetadata:\n name: ${service_name}\nspec:\n replicas: 1\n selector:\n matchLabels:\n app: ${service_name}\n template:\n metadata:\n labels:\n app: ${service_name}\n spec:\n containers:\n - name: redis\n image: redis:6\n ports:\n - containerPort: 6379\n livenessProbe:\n exec:\n command:\n - redis-cli\n - ping\n initialDelaySeconds: 30\n periodSeconds: 10\n readinessProbe:\n tcpSocket:\n port: 6379\n initialDelaySeconds: 10\n periodSeconds: 5\n resources:\n requests:\n cpu: \"1\"\n memory: \"2048Mi\"\n limits:\n cpu: \"1\"\n memory: \"2048Mi\"\n enableServiceLinks: false\n"` | |
| operator.templates.service | string | `"apiVersion: v1\nkind: Service\nmetadata:\n name: ${name}\n namespace: ${namespace}\nspec:\n type: ClusterIP\n selector:\n app: ${name}\n ports:\n - name: api-server\n protocol: TCP\n port: 8000\n targetPort: 8000\n"` | |
| operator.watchNamespaces | string | `""` | |
Expand Down
13 changes: 11 additions & 2 deletions charts/langgraph-dataplane/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
{{- define "validateIngress" -}}
{{- if and .Values.ingress.enabled .Values.gateway.enabled}}
{{- fail "Both ingress and gateway cannot be enabled at the same time." -}}
# Fail if none of ingress, gateway, or istioGateway are enabled
{{- if and (not .Values.ingress.enabled) (not .Values.gateway.enabled) (not .Values.istioGateway.enabled)}}
{{- fail "Either ingress, gateway, or istioGateway must be enabled." -}}
{{- end -}}
# Fail if more than one ingress type is enabled
{{- $enabledCount := 0 -}}
{{- if .Values.ingress.enabled }}{{ $enabledCount = add1 $enabledCount }}{{- end -}}
{{- if .Values.gateway.enabled }}{{ $enabledCount = add1 $enabledCount }}{{- end -}}
{{- if .Values.istioGateway.enabled }}{{ $enabledCount = add1 $enabledCount }}{{- end -}}
{{- if gt $enabledCount 1 }}
{{- fail "Only one of ingress, gateway, or istioGateway can be enabled at the same time." -}}
{{- end -}}
{{- end -}}
{{- template "validateIngress" . -}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{{- end -}}
{{- define "listenerEnvVars" -}}
- name: LANGGRAPH_CLOUD_INGRESS_ENABLED
value: {{ or .Values.ingress.enabled .Values.gateway.enabled | quote }}
value: {{ or .Values.ingress.enabled .Values.gateway.enabled .Values.istioGateway.enabled | quote }}
- name: PORT
value: {{ .Values.listener.containerPort | quote }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ spec:
value: {{ .Values.namespace | default .Release.Namespace }}
{{- end }}
- name: ROOT_DOMAIN
value: {{ coalesce .Values.gateway.hostname .Values.ingress.hostname | quote }}
value: {{ coalesce .Values.gateway.hostname .Values.ingress.hostname .Values.istioGateway.hostname | quote }}
- name: TLS_ENABLED
value: {{ .Values.ingress.tlsEnabled | quote }}
{{- with .Values.operator.deployment.extraEnv }}
Expand Down
24 changes: 24 additions & 0 deletions charts/langgraph-dataplane/templates/operator/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,18 @@ rules:
- patch
- update
- watch
- apiGroups:
- networking.istio.io
resources:
- virtualservices
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down Expand Up @@ -296,6 +308,18 @@ rules:
- patch
- update
- watch
- apiGroups:
- networking.istio.io
resources:
- virtualservices
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand Down
21 changes: 14 additions & 7 deletions charts/langgraph-dataplane/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ images:
listenerImage:
repository: "docker.io/langchain/hosted-langserve-backend"
pullPolicy: IfNotPresent
tag: "0.11.57"
tag: "0.11.68"
redisImage:
repository: "docker.io/redis"
pullPolicy: IfNotPresent
tag: "7"
operatorImage:
repository: "docker.io/langchain/langgraph-operator"
pullPolicy: IfNotPresent
tag: "0.1.11"
tag: "0.1.16"

ingress:
enabled: true
Expand All @@ -55,6 +55,13 @@ gateway:
namespace: ""
hostname: ""

# -- Whether to use Istio VirtualServices for ingress. Will create a VirtualService for each LangGraph platform deployment. Recommended for production use / if deploying multiple releases in the same cluster.
istioGateway:
enabled: false
name: ""
namespace: ""
hostname: ""

config:
existingSecretName: ""
langsmithApiKey: ""
Expand Down Expand Up @@ -218,18 +225,18 @@ operator:
protocol: TCP
livenessProbe:
httpGet:
path: /ok?check_db=1
path: /ok
port: 8000
initialDelaySeconds: 90
periodSeconds: 5
periodSeconds: 15
timeoutSeconds: 5
failureThreshold: 6
readinessProbe:
httpGet:
path: /ok
port: 8000
initialDelaySeconds: 90
periodSeconds: 5
periodSeconds: 15
timeoutSeconds: 5
failureThreshold: 6
service: |
apiVersion: v1
kind: Service
Expand Down
2 changes: 1 addition & 1 deletion charts/langsmith/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ For information on how to use this chart, up-to-date release notes, and other gu
| images.hostBackendImage.repository | string | `"docker.io/langchain/hosted-langserve-backend"` | |
| images.hostBackendImage.tag | string | `"0.11.68"` | |
| images.imagePullSecrets | list | `[]` | Secrets with credentials to pull images from a private registry. Specified as name: value. |
| images.operatorImage.pullPolicy | string | `"Always"` | |
| images.operatorImage.pullPolicy | string | `"IfNotPresent"` | |
| images.operatorImage.repository | string | `"docker.io/langchain/langgraph-operator"` | |
| images.operatorImage.tag | string | `"0.1.16"` | |
| images.platformBackendImage.pullPolicy | string | `"IfNotPresent"` | |
Expand Down
2 changes: 0 additions & 2 deletions charts/langsmith/templates/operator/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ rules:
- networking.istio.io
resources:
- virtualservices
- gateways
verbs:
- create
- delete
Expand Down Expand Up @@ -313,7 +312,6 @@ rules:
- networking.istio.io
resources:
- virtualservices
- gateways
verbs:
- create
- delete
Expand Down
2 changes: 1 addition & 1 deletion charts/langsmith/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ images:
tag: "0.11.68"
operatorImage:
repository: "docker.io/langchain/langgraph-operator"
pullPolicy: Always
pullPolicy: IfNotPresent
tag: "0.1.16"
platformBackendImage:
repository: "docker.io/langchain/langsmith-go-backend"
Expand Down