Skip to content

Commit 43b68e6

Browse files
feat: add support for setting cluster domain (#476)
* feat: add support for setting cluster domain * feat: add support for setting cluster domain
1 parent 7859149 commit 43b68e6

File tree

9 files changed

+68
-65
lines changed

9 files changed

+68
-65
lines changed

charts/langsmith/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ maintainers:
55
66
description: Helm chart to deploy the langsmith application and all services it depends on.
77
type: application
8-
version: 0.11.24
8+
version: 0.11.25
99
appVersion: "0.11.69"

charts/langsmith/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# langsmith
22

3-
![Version: 0.11.24](https://img.shields.io/badge/Version-0.11.24-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.11.69](https://img.shields.io/badge/AppVersion-0.11.69-informational?style=flat-square)
3+
![Version: 0.11.25](https://img.shields.io/badge/Version-0.11.25-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.11.69](https://img.shields.io/badge/AppVersion-0.11.69-informational?style=flat-square)
44

55
Helm chart to deploy the langsmith application and all services it depends on.
66

@@ -12,6 +12,7 @@ For information on how to use this chart, up-to-date release notes, and other gu
1212

1313
| Key | Type | Default | Description |
1414
|-----|------|---------|-------------|
15+
| clusterDomain | string | `"cluster.local"` | Kubernetes cluster domain. Only change if not using 'cluster.local' |
1516
| commonAnnotations | object | `{}` | Annotations that will be applied to all resources created by the chart |
1617
| commonEnv | list | `[]` | Common environment variables that will be applied to all deployments/statefulsets except for the playground/aceBackend services (which are sandboxed). Be careful not to override values already specified by the chart. |
1718
| commonLabels | object | `{}` | Labels that will be applied to all resources created by the chart |

charts/langsmith/templates/clickhouse/secrets.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ data:
2020
{{- else }}
2121
clickhouse_user: {{ .Values.clickhouse.external.user | b64enc }}
2222
clickhouse_password: {{ .Values.clickhouse.external.password | b64enc }}
23-
clickhouse_host: {{ printf "%s-%s.%s.svc.cluster.local" (include "langsmith.fullname" .) .Values.clickhouse.name .Release.Namespace | b64enc }}
23+
clickhouse_host: {{ printf "%s-%s.%s.svc.%s" (include "langsmith.fullname" .) .Values.clickhouse.name .Release.Namespace .Values.clusterDomain | b64enc }}
2424
clickhouse_port: {{ toString .Values.clickhouse.containerHttpPort | b64enc }}
2525
clickhouse_native_port: {{ toString .Values.clickhouse.containerNativePort | b64enc }}
2626
clickhouse_db: {{ .Values.clickhouse.external.database | b64enc }}

charts/langsmith/templates/config-map.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ data:
3232
AUTH_TYPE: "none"
3333
{{- end }}
3434
LANGCHAIN_ENV: "local_kubernetes"
35-
GO_ENDPOINT: "http://{{ include "langsmith.fullname" . }}-{{ .Values.platformBackend.name }}.{{ .Values.namespace | default .Release.Namespace }}.svc.cluster.local:{{ .Values.platformBackend.service.port }}"
36-
GO_ACE_ENDPOINT: "http://{{ include "langsmith.fullname" . }}-{{.Values.aceBackend.name}}.{{ .Values.namespace | default .Release.Namespace }}.svc.cluster.local:{{ .Values.aceBackend.service.port }}"
37-
PLAYGROUND_ENDPOINT: "http://{{ include "langsmith.fullname" . }}-{{.Values.playground.name}}.{{ .Values.namespace | default .Release.Namespace }}.svc.cluster.local:{{ .Values.playground.service.port }}"
38-
SMITH_BACKEND_ENDPOINT: "http://{{ include "langsmith.fullname" . }}-{{.Values.backend.name}}.{{ .Values.namespace | default .Release.Namespace }}.svc.cluster.local:{{ .Values.backend.service.port }}"
39-
HOST_BACKEND_ENDPOINT: "http://{{ include "langsmith.fullname" . }}-{{.Values.hostBackend.name}}.{{ .Values.namespace | default .Release.Namespace }}.svc.cluster.local:{{ .Values.hostBackend.service.port }}"
35+
GO_ENDPOINT: "http://{{ include "langsmith.fullname" . }}-{{ .Values.platformBackend.name }}.{{ .Values.namespace | default .Release.Namespace }}.svc.{{ .Values.clusterDomain }}:{{ .Values.platformBackend.service.port }}"
36+
GO_ACE_ENDPOINT: "http://{{ include "langsmith.fullname" . }}-{{.Values.aceBackend.name}}.{{ .Values.namespace | default .Release.Namespace }}.svc.{{ .Values.clusterDomain }}:{{ .Values.aceBackend.service.port }}"
37+
PLAYGROUND_ENDPOINT: "http://{{ include "langsmith.fullname" . }}-{{.Values.playground.name}}.{{ .Values.namespace | default .Release.Namespace }}.svc.{{ .Values.clusterDomain }}:{{ .Values.playground.service.port }}"
38+
SMITH_BACKEND_ENDPOINT: "http://{{ include "langsmith.fullname" . }}-{{.Values.backend.name}}.{{ .Values.namespace | default .Release.Namespace }}.svc.{{ .Values.clusterDomain }}:{{ .Values.backend.service.port }}"
39+
HOST_BACKEND_ENDPOINT: "http://{{ include "langsmith.fullname" . }}-{{.Values.hostBackend.name}}.{{ .Values.namespace | default .Release.Namespace }}.svc.{{ .Values.clusterDomain }}:{{ .Values.hostBackend.service.port }}"
4040
FF_RUN_STATS_GROUP_BY_ENABLED_ALL: "true"
4141
SEPARATE_QUEUES_WITH_SINGLE_WORKER: '["host"]'
4242
{{- if .Values.config.observability.tracing.enabled }}

0 commit comments

Comments
 (0)