Skip to content

Commit

Permalink
Add sidecars to all services
Browse files Browse the repository at this point in the history
  • Loading branch information
langchain-infra committed Dec 13, 2023
1 parent b129620 commit d519290
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/langsmith/templates/backend/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ spec:
{{- toYaml .Values.backend.deployment.resources | nindent 12 }}
securityContext:
{{- toYaml .Values.backend.deployment.securityContext | nindent 12 }}
{{- with .Values.backend.deployment.sidecars }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.backend.deployment.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/langsmith/templates/backend/run-migrations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ spec:
{{- toYaml .Values.backend.migrations.resources | nindent 12 }}
securityContext:
{{- toYaml .Values.backend.migrations.securityContext | nindent 12 }}
{{- with .Values.backend.migrations.sidecars }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.backend.migrations.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/langsmith/templates/frontend/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ spec:
- mountPath: /etc/nginx/conf.d/default.conf
name: nginx-conf
subPath: nginx.conf
{{- with .Values.frontend.deployment.sidecars }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.frontend.deployment.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/langsmith/templates/hub-backend/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ spec:
{{- toYaml .Values.hubBackend.deployment.resources | nindent 12 }}
securityContext:
{{- toYaml .Values.hubBackend.deployment.securityContext | nindent 12 }}
{{- with .Values.hubBackend.deployment.sidecars }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.hubBackend.deployment.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
24 changes: 24 additions & 0 deletions charts/langsmith/templates/playground/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,34 @@ spec:
- name: playground
containerPort: {{ .Values.playground.containerPort }}
protocol: TCP
startupProbe:
httpGet:
path: /ok
port: {{ .Values.playground.containerPort }}
failureThreshold: 6
periodSeconds: 10
timeoutSeconds: 1
livenessProbe:
httpGet:
path: /ok
port: {{ .Values.playground.containerPort }}
failureThreshold: 6
periodSeconds: 10
timeoutSeconds: 1
readinessProbe:
httpGet:
path: /ok
port: {{ .Values.playground.containerPort }}
failureThreshold: 6
periodSeconds: 10
timeoutSeconds: 1
resources:
{{- toYaml .Values.playground.deployment.resources | nindent 12 }}
securityContext:
{{- toYaml .Values.playground.deployment.securityContext | nindent 12 }}
{{- with .Values.playground.deployment.sidecars }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.playground.deployment.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/langsmith/templates/postgres/stateful-set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ spec:
- mountPath: /var/lib/postgresql/data
name: data
subPath: postgres
{{- with .Values.postgres.statefulSet.sidecars }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.postgres.statefulSet.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/langsmith/templates/queue/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ spec:
{{- toYaml .Values.queue.deployment.resources | nindent 12 }}
securityContext:
{{- toYaml .Values.queue.deployment.securityContext | nindent 12 }}
{{- with .Values.queue.deployment.sidecars }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.queue.deployment.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/langsmith/templates/redis/stateful-set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ spec:
- mountPath: /data
name: data
{{- end }}
{{- with .Values.redis.statefulSet.sidecars }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.redis.statefulSet.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
8 changes: 8 additions & 0 deletions charts/langsmith/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ backend:
# cpu: 200m
# memory: 500Mi
extraEnv: []
sidecars: []
nodeSelector: {}
tolerations: []
affinity: {}
Expand All @@ -89,6 +90,7 @@ backend:
# cpu: 200m
# memory: 500Mi
extraEnv: []
sidecars: []
nodeSelector: {}
tolerations: []
affinity: {}
Expand Down Expand Up @@ -120,6 +122,7 @@ frontend:
# cpu: 200m
# memory: 500Mi
extraEnv: []
sidecars: []
nodeSelector: {}
tolerations: []
affinity: {}
Expand Down Expand Up @@ -152,6 +155,7 @@ hubBackend:
# cpu: 200m
# memory: 500Mi
extraEnv: []
sidecars: []
nodeSelector: {}
tolerations: []
affinity: {}
Expand Down Expand Up @@ -183,6 +187,7 @@ playground:
# cpu: 200m
# memory: 500Mi
extraEnv: []
sidecars: []
nodeSelector: {}
tolerations: []
affinity: {}
Expand Down Expand Up @@ -226,6 +231,7 @@ postgres:
# cpu: 1000m
# memory: 4Gi
extraEnv: []
sidecars: []
nodeSelector: {}
tolerations: []
affinity: {}
Expand Down Expand Up @@ -255,6 +261,7 @@ queue:
# cpu: 200m
# memory: 500Mi
extraEnv: []
sidecars: []
nodeSelector: {}
tolerations: []
affinity: {}
Expand Down Expand Up @@ -291,6 +298,7 @@ redis:
# cpu: 1000m
# memory: 2Gi
extraEnv: []
sidecars: []
nodeSelector: {}
tolerations: []
affinity: {}
Expand Down

0 comments on commit d519290

Please sign in to comment.