1
+ {{- if .Values.queue.enabled -}}
2
+ apiVersion : apps/v1
3
+ kind : Deployment
4
+ metadata :
5
+ name : {{ include "langGraphCloud.fullname" . }}-{{ .Values.queue.name }}
6
+ labels :
7
+ {{- include "langGraphCloud.labels" . | nindent 4 }}
8
+ {{- with.Values.queue.deployment.labels }}
9
+ {{- toYaml . | nindent 4 }}
10
+ {{- end }}
11
+ annotations :
12
+ {{- include "langGraphCloud.annotations" . | nindent 4 }}
13
+ {{- with.Values.queue.deployment.annotations }}
14
+ {{- toYaml . | nindent 4 }}
15
+ {{- end }}
16
+ spec :
17
+ {{- if not .Values.queue.autoscaling.enabled }}
18
+ replicas : {{ .Values.queue.deployment.replicaCount }}
19
+ {{- end }}
20
+ selector :
21
+ matchLabels :
22
+ {{- include "langGraphCloud.selectorLabels" . | nindent 6 }}
23
+ app.kubernetes.io/component : {{ include "langGraphCloud.fullname" . }}-{{ .Values.queue.name }}
24
+ template :
25
+ metadata :
26
+ {{- with .Values.queue.deployment.annotations }}
27
+ annotations :
28
+ {{- toYaml . | nindent 8 }}
29
+ {{- end }}
30
+ labels :
31
+ {{- with.Values.queue.deployment.labels }}
32
+ {{- toYaml . | nindent 8 }}
33
+ {{- end }}
34
+ {{- include "langGraphCloud.labels" . | nindent 8 }}
35
+ app.kubernetes.io/component : {{ include "langGraphCloud.fullname" . }}-{{ .Values.queue.name }}
36
+ spec :
37
+ serviceAccountName : {{ include "queue.serviceAccountName" . }}
38
+ {{- with .Values.images.imagePullSecrets }}
39
+ imagePullSecrets :
40
+ {{- toYaml . | nindent 8 }}
41
+ {{- end }}
42
+ securityContext :
43
+ {{- toYaml .Values.queue.deployment.podSecurityContext | nindent 8 }}
44
+ containers :
45
+ - name : {{ .Values.queue.name }}
46
+ command :
47
+ - " python"
48
+ - " -m"
49
+ - " langgraph_api.queue_entrypoint"
50
+ env :
51
+ - name : PORT
52
+ value : {{ .Values.queue.containerPort | quote }}
53
+ - name : POSTGRES_URI
54
+ valueFrom :
55
+ secretKeyRef :
56
+ name : {{ include "langGraphCloud.postgresSecretsName" . }}
57
+ key : postgres_connection_url
58
+ - name : REDIS_URI
59
+ valueFrom :
60
+ secretKeyRef :
61
+ name : {{ include "langGraphCloud.redisSecretsName" . }}
62
+ key : redis_connection_url
63
+ - name : LANGGRAPH_CLOUD_LICENSE_KEY
64
+ valueFrom :
65
+ secretKeyRef :
66
+ name : {{ include "langGraphCloud.secretsName" . }}
67
+ key : langgraph_cloud_license_key
68
+ {{- if .Values.config.auth.enabled }}
69
+ - name : LANGGRAPH_AUTH_TYPE
70
+ value : " langsmith"
71
+ - name : LANGSMITH_AUTH_ENDPOINT
72
+ value : {{ .Values.config.auth.langSmithAuthEndpoint }}
73
+ - name : LANGSMITH_TENANT_ID
74
+ value : {{ .Values.config.auth.langSmithTenantId }}
75
+ - name : N_JOBS_PER_WORKER
76
+ value : {{ .Values.config.numberOfJobsPerWorker | quote }}
77
+ {{- end }}
78
+ {{- with .Values.queue.deployment.extraEnv }}
79
+ {{- toYaml . | nindent 12 }}
80
+ {{- end }}
81
+ image : " {{ .Values.images.apiServerImage.repository }}:{{ .Values.images.apiServerImage.tag | default .Chart.AppVersion }}"
82
+ imagePullPolicy : {{ .Values.images.apiServerImage.pullPolicy }}
83
+ ports :
84
+ - name : queue
85
+ containerPort : {{ .Values.queue.containerPort }}
86
+ protocol : TCP
87
+ startupProbe :
88
+ httpGet :
89
+ port : {{ .Values.queue.containerPort }}
90
+ path : " /ok"
91
+ failureThreshold : 6
92
+ periodSeconds : 10
93
+ timeoutSeconds : 1
94
+ readinessProbe :
95
+ httpGet :
96
+ port : {{ .Values.queue.containerPort }}
97
+ path : " /ok"
98
+ failureThreshold : 6
99
+ periodSeconds : 10
100
+ timeoutSeconds : 1
101
+ livenessProbe :
102
+ httpGet :
103
+ port : {{ .Values.queue.containerPort }}
104
+ path : " /ok"
105
+ failureThreshold : 6
106
+ periodSeconds : 10
107
+ timeoutSeconds : 1
108
+ resources :
109
+ {{- toYaml .Values.queue.deployment.resources | nindent 12 }}
110
+ securityContext :
111
+ {{- toYaml .Values.queue.deployment.securityContext | nindent 12 }}
112
+ {{- with .Values.queue.deployment.volumeMounts }}
113
+ volumeMounts :
114
+ {{- toYaml . | nindent 12 }}
115
+ {{- end }}
116
+ {{- with .Values.queue.deployment.sidecars }}
117
+ {{- toYaml . | nindent 8 }}
118
+ {{- end }}
119
+ {{- with .Values.queue.deployment.nodeSelector }}
120
+ nodeSelector :
121
+ {{- toYaml . | nindent 8 }}
122
+ {{- end }}
123
+ {{- with .Values.queue.deployment.affinity }}
124
+ affinity :
125
+ {{- toYaml . | nindent 8 }}
126
+ {{- end }}
127
+ {{- with .Values.queue.deployment.tolerations }}
128
+ tolerations :
129
+ {{- toYaml . | nindent 8 }}
130
+ {{- end }}
131
+ {{- with .Values.queue.deployment.volumes }}
132
+ volumes :
133
+ {{- toYaml . | nindent 8 }}
134
+ {{- end }}
135
+ {{- end}}
0 commit comments