-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add studio to lg platform/cloud chart (#210)
* feat: add studio to lg platform/cloud chart * feat: add studio to lg platform/cloud chart * fix lint * fix lint
- Loading branch information
1 parent
b054d83
commit d9e687a
Showing
11 changed files
with
325 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,5 @@ maintainers: | |
email: [email protected] | ||
description: Helm chart to deploy the LangGraph Cloud application and all services it depends on. | ||
type: application | ||
version: 0.1.5 | ||
version: 0.1.6 | ||
appVersion: "0.2.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,25 @@ | ||
This is the LangGraph Cloud application helm chart. All pods should be running! | ||
Thank you for installing LangGraph Cloud! | ||
|
||
This chart deploys a LangGraph Cloud instance. All pods should be running! You can access the docs for your API Server by running the following command: | ||
|
||
kubectl port-forward svc/langgraph-api-server 8080:80 | ||
|
||
Then you can access the LangGraph API Server Docs at http://localhost:8080/docs | ||
|
||
If you have configured a LoadBalancer service for the LangGraph API Server, you can access the LangGraph API Server by running the following command: | ||
|
||
kubectl get svc langgraph-api-server | ||
|
||
Then you can access the LangGraph API Server at http://<EXTERNAL-IP>. | ||
|
||
If you have enabled the studio, you can access the LangGraph Studio by running the following command: | ||
|
||
kubectl port-forward svc/langgraph-cloud-studio 8080:80 | ||
|
||
Then you can access the LangGraph Studio at http://localhost:8080. Note that it will by default point to the ingress.hostname parameter. You can update this by changing the baseUrl parameter in the url. | ||
|
||
If you have configured a LoadBalancer service for the LangGraph Studio, you can access the LangGraph Studio by running the following command: | ||
|
||
kubectl get svc langgraph-cloud-studio | ||
|
||
Then you can access the LangGraph Studio at http://<EXTERNAL-IP>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
106 changes: 106 additions & 0 deletions
106
charts/langgraph-cloud/templates/studio/deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
{{- if .Values.studio.enabled }} | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ include "langGraphCloud.fullname" . }}-{{ .Values.studio.name }} | ||
labels: | ||
{{- include "langGraphCloud.labels" . | nindent 4 }} | ||
{{- with.Values.studio.deployment.labels }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
annotations: | ||
{{- include "langGraphCloud.annotations" . | nindent 4 }} | ||
{{- with.Values.studio.deployment.annotations }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
{{- if not .Values.studio.autoscaling.enabled }} | ||
replicas: {{ .Values.studio.deployment.replicaCount }} | ||
{{- end }} | ||
selector: | ||
matchLabels: | ||
{{- include "langGraphCloud.selectorLabels" . | nindent 6 }} | ||
app.kubernetes.io/component: {{ include "langGraphCloud.fullname" . }}-{{ .Values.studio.name }} | ||
template: | ||
metadata: | ||
{{- with .Values.studio.deployment.annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
labels: | ||
{{- with.Values.studio.deployment.labels }} | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- include "langGraphCloud.labels" . | nindent 8 }} | ||
app.kubernetes.io/component: {{ include "langGraphCloud.fullname" . }}-{{ .Values.studio.name }} | ||
spec: | ||
serviceAccountName: {{ include "studio.serviceAccountName" . }} | ||
{{- with .Values.images.imagePullSecrets }} | ||
imagePullSecrets: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
securityContext: | ||
{{- toYaml .Values.studio.deployment.podSecurityContext | nindent 8 }} | ||
containers: | ||
- name: {{ .Values.studio.name }} | ||
env: | ||
- name: VITE_STUDIO_LOCAL_GRAPH_URL | ||
value: {{ .Values.ingress.hostname }} | ||
{{- with .Values.studio.deployment.extraEnv }} | ||
{{- toYaml . | nindent 12 }} | ||
{{- end }} | ||
image: "{{ .Values.images.studioImage.repository }}:{{ .Values.images.studioImage.tag | default .Chart.AppVersion }}" | ||
imagePullPolicy: {{ .Values.images.studioImage.pullPolicy }} | ||
ports: | ||
- name: studio | ||
containerPort: {{ .Values.studio.containerPort }} | ||
protocol: TCP | ||
startupProbe: | ||
httpGet: | ||
path: /health | ||
port: {{ .Values.studio.containerPort }} | ||
failureThreshold: 6 | ||
periodSeconds: 10 | ||
timeoutSeconds: 1 | ||
readinessProbe: | ||
httpGet: | ||
path: /health | ||
port: {{ .Values.studio.containerPort }} | ||
failureThreshold: 3 | ||
periodSeconds: 10 | ||
timeoutSeconds: 1 | ||
livenessProbe: | ||
httpGet: | ||
path: /health | ||
port: {{ .Values.studio.containerPort }} | ||
failureThreshold: 6 | ||
periodSeconds: 10 | ||
timeoutSeconds: 1 | ||
resources: | ||
{{- toYaml .Values.studio.deployment.resources | nindent 12 }} | ||
securityContext: | ||
{{- toYaml .Values.studio.deployment.securityContext | nindent 12 }} | ||
{{- with .Values.studio.deployment.volumeMounts }} | ||
volumeMounts: | ||
{{- toYaml . | nindent 12 }} | ||
{{- end }} | ||
{{- with .Values.studio.deployment.sidecars }} | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.studio.deployment.nodeSelector }} | ||
nodeSelector: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.studio.deployment.affinity }} | ||
affinity: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.studio.deployment.tolerations }} | ||
tolerations: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.studio.deployment.volumes }} | ||
volumes: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{{- if and .Values.studio.autoscaling.enabled .Values.studio.enabled }} | ||
apiVersion: autoscaling/v2 | ||
kind: HorizontalPodAutoscaler | ||
metadata: | ||
name: {{ include "langGraphCloud.fullname" . }}-{{ .Values.studio.name }} | ||
labels: | ||
{{- include "langGraphCloud.labels" . | nindent 4 }} | ||
spec: | ||
scaleTargetRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: {{ include "langGraphCloud.fullname" . }}-{{ .Values.studio.name }} | ||
minReplicas: {{ .Values.studio.autoscaling.minReplicas }} | ||
maxReplicas: {{ .Values.studio.autoscaling.maxReplicas }} | ||
metrics: | ||
{{- if .Values.studio.autoscaling.targetCPUUtilizationPercentage }} | ||
- type: Resource | ||
resource: | ||
name: cpu | ||
target: | ||
type: Utilization | ||
averageUtilization: {{ .Values.studio.autoscaling.targetCPUUtilizationPercentage }} | ||
{{- end }} | ||
{{- if .Values.studio.autoscaling.targetMemoryUtilizationPercentage }} | ||
- type: Resource | ||
resource: | ||
name: memory | ||
target: | ||
type: Utilization | ||
averageUtilization: {{ .Values.studio.autoscaling.targetMemoryUtilizationPercentage }} | ||
{{- end }} | ||
{{- end }} |
16 changes: 16 additions & 0 deletions
16
charts/langgraph-cloud/templates/studio/service-account.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{- if and .Values.studio.enabled .Values.studio.serviceAccount.create -}} | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: {{ include "studio.serviceAccountName" . }} | ||
labels: | ||
{{- include "langGraphCloud.labels" . | nindent 4 }} | ||
{{- with.Values.studio.deployment.labels }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
annotations: | ||
{{- include "langGraphCloud.annotations" . | nindent 4 }} | ||
{{- with.Values.studio.serviceAccount.annotations }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{{- if .Values.studio.enabled }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "langGraphCloud.fullname" . }}-{{ .Values.studio.name }} | ||
labels: | ||
{{- include "langGraphCloud.labels" . | nindent 4 }} | ||
{{- with.Values.studio.service.labels }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
annotations: | ||
{{- include "langGraphCloud.annotations" . | nindent 4 }} | ||
{{- with.Values.studio.service.annotations }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
type: {{ .Values.studio.service.type }} | ||
{{- with .Values.studio.service.loadBalancerSourceRanges }} | ||
loadBalancerSourceRanges: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
loadBalancerIP: {{ .Values.studio.service.loadBalancerIP }} | ||
ports: | ||
- name: http | ||
port: {{ .Values.studio.service.httpPort }} | ||
targetPort: studio | ||
protocol: TCP | ||
- name: https | ||
port: {{ .Values.studio.service.httpsPort }} | ||
targetPort: studio | ||
protocol: TCP | ||
selector: | ||
{{- include "langGraphCloud.selectorLabels" . | nindent 4 }} | ||
app.kubernetes.io/component: {{ include "langGraphCloud.fullname" . }}-{{ .Values.studio.name }} | ||
{{- end }} |
Oops, something went wrong.