From 32280e730abb1804452cc75cfc0d29f5d3f1269b Mon Sep 17 00:00:00 2001 From: infra Date: Tue, 26 Mar 2024 16:00:21 -0400 Subject: [PATCH] feat: consolidate backend and hubBackend --- charts/langsmith/Chart.yaml | 4 +- charts/langsmith/README.md | 51 +------- charts/langsmith/README.md.gotmpl | 15 +-- .../examples/autoscaling_config.yaml | 12 -- charts/langsmith/examples/medium_size.yaml | 12 -- charts/langsmith/templates/_helpers.tpl | 8 -- charts/langsmith/templates/api_ingress.yaml | 20 +-- .../templates/frontend/config-map.yaml | 4 +- .../templates/hub-backend/deployment.yaml | 116 ------------------ .../langsmith/templates/hub-backend/hpa.yaml | 32 ----- .../hub-backend/service-account.yaml | 16 --- .../templates/hub-backend/service.yaml | 29 ----- charts/langsmith/values.yaml | 56 +-------- 13 files changed, 27 insertions(+), 348 deletions(-) delete mode 100644 charts/langsmith/templates/hub-backend/deployment.yaml delete mode 100644 charts/langsmith/templates/hub-backend/hpa.yaml delete mode 100644 charts/langsmith/templates/hub-backend/service-account.yaml delete mode 100644 charts/langsmith/templates/hub-backend/service.yaml diff --git a/charts/langsmith/Chart.yaml b/charts/langsmith/Chart.yaml index 3969a97..6df29ac 100644 --- a/charts/langsmith/Chart.yaml +++ b/charts/langsmith/Chart.yaml @@ -5,5 +5,5 @@ maintainers: email: ankush@langchain.dev description: Helm chart to deploy the langsmith application and all services it depends on. type: application -version: 0.4.0 -appVersion: "0.1.37" +version: 0.4.1 +appVersion: "0.2.0" diff --git a/charts/langsmith/README.md b/charts/langsmith/README.md index 113d963..b08367b 100644 --- a/charts/langsmith/README.md +++ b/charts/langsmith/README.md @@ -1,6 +1,6 @@ # langsmith -![Version: 0.4.0](https://img.shields.io/badge/Version-0.4.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.37](https://img.shields.io/badge/AppVersion-0.1.37-informational?style=flat-square) +![Version: 0.4.1](https://img.shields.io/badge/Version-0.4.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.2.0](https://img.shields.io/badge/AppVersion-0.2.0-informational?style=flat-square) Helm chart to deploy the langsmith application and all services it depends on. @@ -16,6 +16,7 @@ There are a few important changes when migrating from 0.3.0 to 0.4.0. The majori - You may need to resize your existing storage class or set `clickhouse.statefulSet.persistence.size` to the old default value of `8Gi`. - Some of our image repositories have been updated. You can see the root repositories in our `values.yaml` file. You may need to update mirrors. - We now expose an api key salt parameter. This previously defaulted to your LangSmith License Key. To ensure backwards compatibility, you should set this param to your license key to avoid invalidating old api keys. +- Consolidation of hubBackend and backend services. We now use one service to serve both of these endpoints. This should not impact your application. ** Note: Using a new api key salt will invalidate all old api keys. ** @@ -166,7 +167,6 @@ More examples can be found in the `examples` directory. ```bash langsmith-backend-6ff46c99c4-wz22d 1/1 Running 0 3h2m langsmith-frontend-6bbb94c5df-8xrlr 1/1 Running 0 3h2m - langsmith-hub-backend-5cc68c888c-vppjj 1/1 Running 0 3h2m langsmith-playground-6d95fd8dc6-x2d9b 1/1 Running 0 3h2m langsmith-postgres-0 1/1 Running 0 9h langsmith-queue-5898b9d566-tv6q8 1/1 Running 0 3h2m @@ -183,7 +183,6 @@ More examples can be found in the `examples` directory. NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE langsmith-backend ClusterIP 172.20.140.77 1984/TCP 35h langsmith-frontend LoadBalancer 172.20.253.251 80:31591/TCP 35h - langsmith-hub-backend ClusterIP 172.20.112.234 1985/TCP 35h langsmith-playground ClusterIP 172.20.153.194 3001/TCP 9h langsmith-postgres ClusterIP 172.20.244.82 5432/TCP 35h langsmith-redis ClusterIP 172.20.81.217 6379/TCP 35h @@ -292,20 +291,17 @@ We typically validate deployment using the following quickstart guide: | fullnameOverride | string | `""` | String to fully override `"langsmith.fullname"` | | images.backendImage.pullPolicy | string | `"IfNotPresent"` | | | images.backendImage.repository | string | `"docker.io/langchain/langsmith-backend"` | | -| images.backendImage.tag | string | `"0.1.37"` | | +| images.backendImage.tag | string | `"0.2.0"` | | | images.clickhouseImage.pullPolicy | string | `"Always"` | | | images.clickhouseImage.repository | string | `"docker.io/clickhouse/clickhouse-server"` | | | images.clickhouseImage.tag | string | `"23.9"` | | | images.frontendImage.pullPolicy | string | `"IfNotPresent"` | | | images.frontendImage.repository | string | `"docker.io/langchain/langsmith-frontend"` | | -| images.frontendImage.tag | string | `"0.1.37"` | | -| images.hubBackendImage.pullPolicy | string | `"IfNotPresent"` | | -| images.hubBackendImage.repository | string | `"docker.io/langchain/langhub-backend"` | | -| images.hubBackendImage.tag | string | `"0.1.37"` | | +| images.frontendImage.tag | string | `"0.2.0"` | | | images.imagePullSecrets | list | `[]` | Secrets with credentials to pull images from a private registry. Specified as name: value. | | images.playgroundImage.pullPolicy | string | `"IfNotPresent"` | | | images.playgroundImage.repository | string | `"docker.io/langchain/langsmith-playground"` | | -| images.playgroundImage.tag | string | `"0.1.37"` | | +| images.playgroundImage.tag | string | `"0.2.0"` | | | images.postgresImage.pullPolicy | string | `"IfNotPresent"` | | | images.postgresImage.repository | string | `"docker.io/postgres"` | | | images.postgresImage.tag | string | `"14.7"` | | @@ -493,43 +489,6 @@ We typically validate deployment using the following quickstart guide: | frontend.serviceAccount.labels | object | `{}` | | | frontend.serviceAccount.name | string | `""` | | -## Hub Backend - -| Key | Type | Default | Description | -|-----|------|---------|-------------| -| hubBackend.autoscaling.createHpa | bool | `true` | | -| hubBackend.autoscaling.enabled | bool | `false` | | -| hubBackend.autoscaling.maxReplicas | int | `5` | | -| hubBackend.autoscaling.minReplicas | int | `1` | | -| hubBackend.autoscaling.targetCPUUtilizationPercentage | int | `80` | | -| hubBackend.containerPort | int | `1985` | | -| hubBackend.deployment.affinity | object | `{}` | | -| hubBackend.deployment.annotations | object | `{}` | | -| hubBackend.deployment.command | list | `[]` | | -| hubBackend.deployment.extraContainerConfig | object | `{}` | | -| hubBackend.deployment.extraEnv | list | `[]` | | -| hubBackend.deployment.labels | object | `{}` | | -| hubBackend.deployment.nodeSelector | object | `{}` | | -| hubBackend.deployment.podSecurityContext | object | `{}` | | -| hubBackend.deployment.replicas | int | `1` | | -| hubBackend.deployment.resources | object | `{}` | | -| hubBackend.deployment.securityContext | object | `{}` | | -| hubBackend.deployment.sidecars | list | `[]` | | -| hubBackend.deployment.tolerations | list | `[]` | | -| hubBackend.deployment.volumeMounts | list | `[]` | | -| hubBackend.deployment.volumes | list | `[]` | | -| hubBackend.name | string | `"hub-backend"` | | -| hubBackend.service.annotations | object | `{}` | | -| hubBackend.service.labels | object | `{}` | | -| hubBackend.service.loadBalancerIP | string | `""` | | -| hubBackend.service.loadBalancerSourceRanges | list | `[]` | | -| hubBackend.service.port | int | `1985` | | -| hubBackend.service.type | string | `"ClusterIP"` | | -| hubBackend.serviceAccount.annotations | object | `{}` | | -| hubBackend.serviceAccount.create | bool | `true` | | -| hubBackend.serviceAccount.labels | object | `{}` | | -| hubBackend.serviceAccount.name | string | `""` | | - ## Playground | Key | Type | Default | Description | diff --git a/charts/langsmith/README.md.gotmpl b/charts/langsmith/README.md.gotmpl index f4dad36..36d665c 100644 --- a/charts/langsmith/README.md.gotmpl +++ b/charts/langsmith/README.md.gotmpl @@ -16,6 +16,7 @@ There are a few important changes when migrating from 0.3.0 to 0.4.0. The majori - You may need to resize your existing storage class or set `clickhouse.statefulSet.persistence.size` to the old default value of `8Gi`. - Some of our image repositories have been updated. You can see the root repositories in our `values.yaml` file. You may need to update mirrors. - We now expose an api key salt parameter. This previously defaulted to your LangSmith License Key. To ensure backwards compatibility, you should set this param to your license key to avoid invalidating old api keys. +- Consolidation of hubBackend and backend services. We now use one service to serve both of these endpoints. This should not impact your application. ** Note: Using a new api key salt will invalidate all old api keys. ** @@ -167,7 +168,6 @@ More examples can be found in the `examples` directory. ```bash langsmith-backend-6ff46c99c4-wz22d 1/1 Running 0 3h2m langsmith-frontend-6bbb94c5df-8xrlr 1/1 Running 0 3h2m - langsmith-hub-backend-5cc68c888c-vppjj 1/1 Running 0 3h2m langsmith-playground-6d95fd8dc6-x2d9b 1/1 Running 0 3h2m langsmith-postgres-0 1/1 Running 0 9h langsmith-queue-5898b9d566-tv6q8 1/1 Running 0 3h2m @@ -185,7 +185,6 @@ More examples can be found in the `examples` directory. NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE langsmith-backend ClusterIP 172.20.140.77 1984/TCP 35h langsmith-frontend LoadBalancer 172.20.253.251 80:31591/TCP 35h - langsmith-hub-backend ClusterIP 172.20.112.234 1985/TCP 35h langsmith-playground ClusterIP 172.20.153.194 3001/TCP 9h langsmith-postgres ClusterIP 172.20.244.82 5432/TCP 35h langsmith-redis ClusterIP 172.20.81.217 6379/TCP 35h @@ -246,7 +245,7 @@ We typically validate deployment using the following quickstart guide: | Key | Type | Default | Description | |-----|------|---------|-------------| {{- range .Values }} - {{- if not (or (hasPrefix "config" .Key) (hasPrefix "backend" .Key) (hasPrefix "frontend" .Key) (hasPrefix "hubBackend" .Key) (hasPrefix "playground" .Key) (hasPrefix "postgres" .Key) (hasPrefix "queue" .Key) (hasPrefix "redis" .Key) ) }} + {{- if not (or (hasPrefix "config" .Key) (hasPrefix "backend" .Key) (hasPrefix "frontend" .Key) (hasPrefix "playground" .Key) (hasPrefix "postgres" .Key) (hasPrefix "queue" .Key) (hasPrefix "redis" .Key) ) }} | {{ .Key }} | {{ .Type }} | {{ if .Default }}{{ .Default }}{{ else }}{{ .AutoDefault }}{{ end }} | {{ if .Description }}{{ .Description }}{{ else }}{{ .AutoDescription }}{{ end }} | {{- end }} {{- end }} @@ -293,16 +292,6 @@ We typically validate deployment using the following quickstart guide: {{- end }} {{- end }} -## Hub Backend - -| Key | Type | Default | Description | -|-----|------|---------|-------------| -{{- range .Values }} - {{- if hasPrefix "hubBackend" .Key }} -| {{ .Key }} | {{ .Type }} | {{ if .Default }}{{ .Default }}{{ else }}{{ .AutoDefault }}{{ end }} | {{ if .Description }}{{ .Description }}{{ else }}{{ .AutoDescription }}{{ end }} | - {{- end }} -{{- end }} - ## Playground | Key | Type | Default | Description | diff --git a/charts/langsmith/examples/autoscaling_config.yaml b/charts/langsmith/examples/autoscaling_config.yaml index 706d7fb..e17e023 100644 --- a/charts/langsmith/examples/autoscaling_config.yaml +++ b/charts/langsmith/examples/autoscaling_config.yaml @@ -15,18 +15,6 @@ backend: maxReplicas: 10 targetCPUUtilizationPercentage: 50 -hubBackend: - deployment: - resources: - requests: - cpu: 500m - memory: 1000Mi - autoscaling: - enabled: true - minReplicas: 1 - maxReplicas: 10 - targetCPUUtilizationPercentage: 50 - frontend: deployment: resources: diff --git a/charts/langsmith/examples/medium_size.yaml b/charts/langsmith/examples/medium_size.yaml index 19ceca3..5cde3bc 100644 --- a/charts/langsmith/examples/medium_size.yaml +++ b/charts/langsmith/examples/medium_size.yaml @@ -20,18 +20,6 @@ backend: maxReplicas: 10 targetCPUUtilizationPercentage: 50 -hubBackend: - deployment: - resources: - requests: - cpu: "500m" - memory: "1000Mi" - autoscaling: - enabled: true - minReplicas: 1 - maxReplicas: 10 - targetCPUUtilizationPercentage: 50 - frontend: deployment: resources: diff --git a/charts/langsmith/templates/_helpers.tpl b/charts/langsmith/templates/_helpers.tpl index 653b2f6..baae2b3 100644 --- a/charts/langsmith/templates/_helpers.tpl +++ b/charts/langsmith/templates/_helpers.tpl @@ -219,14 +219,6 @@ Template containing common environment variables that are used by several servic {{- end -}} {{- end -}} -{{- define "hubBackend.serviceAccountName" -}} -{{- if .Values.hubBackend.serviceAccount.create -}} - {{ default (printf "%s-%s" (include "langsmith.fullname" .) .Values.hubBackend.name) .Values.hubBackend.serviceAccount.name | trunc 63 | trimSuffix "-" }} -{{- else -}} - {{ default "default" .Values.hubBackend.serviceAccount.name }} -{{- end -}} -{{- end -}} - {{- define "playground.serviceAccountName" -}} {{- if .Values.playground.serviceAccount.create -}} {{ default (printf "%s-%s" (include "langsmith.fullname" .) .Values.playground.name) .Values.playground.serviceAccount.name | trunc 63 | trimSuffix "-" }} diff --git a/charts/langsmith/templates/api_ingress.yaml b/charts/langsmith/templates/api_ingress.yaml index 3f5564f..8e5c94c 100644 --- a/charts/langsmith/templates/api_ingress.yaml +++ b/charts/langsmith/templates/api_ingress.yaml @@ -21,6 +21,7 @@ spec: {{- toYaml . | nindent 4 }} {{- end }} rules: + {{- if .Values.apiIngress.subdomain }} - host: {{ .Values.apiIngress.hostname }} http: paths: @@ -31,11 +32,16 @@ spec: name: {{ include "langsmith.fullname" . }}-{{ .Values.backend.name }} port: number: {{ .Values.backend.service.port }} - - path: /{{ .Values.apiIngress.subdomain }}/api-hub/v1 - pathType: Prefix - backend: - service: - name: {{ include "langsmith.fullname" . }}-{{ .Values.hubBackend.name }} - port: - number: {{ .Values.backend.service.port }} + {{- else }} + - host: {{ .Values.apiIngress.hostname }} + http: + paths: + - path: /api/v1 + pathType: Prefix + backend: + service: + name: {{ include "langsmith.fullname" . }}-{{ .Values.backend.name }} + port: + number: {{ .Values.backend.service.port }} + {{- end }} {{- end }} diff --git a/charts/langsmith/templates/frontend/config-map.yaml b/charts/langsmith/templates/frontend/config-map.yaml index 12c78e8..76af694 100644 --- a/charts/langsmith/templates/frontend/config-map.yaml +++ b/charts/langsmith/templates/frontend/config-map.yaml @@ -63,7 +63,7 @@ data: proxy_http_version 1.1; proxy_buffering off; proxy_cache off; - proxy_pass http://{{ include "langsmith.fullname" . }}-{{ .Values.hubBackend.name }}:{{ .Values.hubBackend.service.port }}; + proxy_pass http://{{ include "langsmith.fullname" . }}-{{ .Values.backend.name }}:{{ .Values.backend.service.port }}; } # Backend Routes @@ -147,7 +147,7 @@ data: proxy_http_version 1.1; proxy_buffering off; proxy_cache off; - proxy_pass http://{{ include "langsmith.fullname" . }}-{{ .Values.hubBackend.name }}:{{ .Values.hubBackend.service.port }}; + proxy_pass http://{{ include "langsmith.fullname" . }}-{{ .Values.backend.name }}:{{ .Values.backend.service.port }}; } # Backend Routes diff --git a/charts/langsmith/templates/hub-backend/deployment.yaml b/charts/langsmith/templates/hub-backend/deployment.yaml deleted file mode 100644 index 580999a..0000000 --- a/charts/langsmith/templates/hub-backend/deployment.yaml +++ /dev/null @@ -1,116 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ include "langsmith.fullname" . }}-{{ .Values.hubBackend.name }} - labels: - {{- include "langsmith.labels" . | nindent 4 }} - {{- with.Values.hubBackend.deployment.labels }} - {{- toYaml . | nindent 4 }} - {{- end }} - annotations: - {{- include "langsmith.annotations" . | nindent 4 }} - {{- with.Values.hubBackend.deployment.annotations }} - {{- toYaml . | nindent 4 }} - {{- end }} -spec: - {{- if not .Values.hubBackend.autoscaling.enabled }} - replicas: {{ .Values.hubBackend.deployment.replicas }} - {{- end }} - selector: - matchLabels: - {{- include "langsmith.selectorLabels" . | nindent 6 }} - app.kubernetes.io/component: {{ include "langsmith.fullname" . }}-{{ .Values.hubBackend.name }} - template: - metadata: - annotations: - rollme: {{ randAlphaNum 5 | quote }} - {{- with .Values.hubBackend.deployment.annotations }} - {{- toYaml . | nindent 8 }} - {{- end }} - labels: - {{- with.Values.hubBackend.deployment.labels }} - {{- toYaml . | nindent 8 }} - {{- end }} - {{- include "langsmith.labels" . | nindent 8 }} - app.kubernetes.io/component: {{ include "langsmith.fullname" . }}-{{ .Values.hubBackend.name }} - spec: - {{- with .Values.images.imagePullSecrets }} - imagePullSecrets: - {{- toYaml . | nindent 8 }} - {{- end }} - securityContext: - {{- toYaml .Values.hubBackend.deployment.podSecurityContext | nindent 8 }} - serviceAccountName: {{ include "hubBackend.serviceAccountName" . }} - containers: - - name: {{ .Values.hubBackend.name }} - {{- with.Values.hubBackend.deployment.command }} - command: - {{- toYaml . | nindent 12 }} - {{- end }} - env: - {{- include "langsmith.commonEnv" . | nindent 12 }} - - name: PORT - value: {{ .Values.hubBackend.containerPort | quote }} - {{- with .Values.hubBackend.deployment.extraEnv }} - {{- toYaml . | nindent 12 }} - {{- end }} - envFrom: - - configMapRef: - name: {{ include "langsmith.fullname" . }}-config - image: "{{ .Values.images.hubBackendImage.repository }}:{{ .Values.images.hubBackendImage.tag | default .Chart.AppVersion }}" - imagePullPolicy: {{ .Values.images.hubBackendImage.pullPolicy }} - ports: - - name: hub-backend - containerPort: {{ .Values.hubBackend.containerPort }} - protocol: TCP - startupProbe: - httpGet: - path: /ok - port: {{ .Values.hubBackend.containerPort }} - failureThreshold: 6 - periodSeconds: 10 - timeoutSeconds: 1 - livenessProbe: - httpGet: - path: /ok - port: {{ .Values.hubBackend.containerPort }} - failureThreshold: 6 - periodSeconds: 10 - timeoutSeconds: 1 - readinessProbe: - httpGet: - path: /ok - port: {{ .Values.hubBackend.containerPort }} - failureThreshold: 6 - periodSeconds: 10 - timeoutSeconds: 1 - resources: - {{- toYaml .Values.hubBackend.deployment.resources | nindent 12 }} - securityContext: - {{- toYaml .Values.hubBackend.deployment.securityContext | nindent 12 }} - {{- with .Values.hubBackend.deployment.volumeMounts }} - volumeMounts: - {{- toYaml . | nindent 12 }} - {{- end }} - {{- with .Values.hubBackend.deployment.extraContainerConfig }} - {{- toYaml . | nindent 10 }} - {{- end }} - {{- with .Values.hubBackend.deployment.sidecars }} - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.hubBackend.deployment.nodeSelector }} - nodeSelector: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.hubBackend.deployment.affinity }} - affinity: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.hubBackend.deployment.tolerations }} - tolerations: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.hubBackend.deployment.volumes }} - volumes: - {{- toYaml . | nindent 8 }} - {{- end }} diff --git a/charts/langsmith/templates/hub-backend/hpa.yaml b/charts/langsmith/templates/hub-backend/hpa.yaml deleted file mode 100644 index 66dcf36..0000000 --- a/charts/langsmith/templates/hub-backend/hpa.yaml +++ /dev/null @@ -1,32 +0,0 @@ -{{- if and .Values.hubBackend.autoscaling.enabled .Values.hubBackend.autoscaling.createHpa }} -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: {{ include "langsmith.fullname" . }}-{{ .Values.hubBackend.name }} - labels: - {{- include "langsmith.labels" . | nindent 4 }} -spec: - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: {{ include "langsmith.fullname" . }}-{{ .Values.hubBackend.name }} - minReplicas: {{ .Values.hubBackend.autoscaling.minReplicas }} - maxReplicas: {{ .Values.hubBackend.autoscaling.maxReplicas }} - metrics: - {{- if .Values.hubBackend.autoscaling.targetCPUUtilizationPercentage }} - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: {{ .Values.hubBackend.autoscaling.targetCPUUtilizationPercentage }} - {{- end }} - {{- if .Values.hubBackend.autoscaling.targetMemoryUtilizationPercentage }} - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: {{ .Values.hubBackend.autoscaling.targetMemoryUtilizationPercentage }} - {{- end }} -{{- end }} diff --git a/charts/langsmith/templates/hub-backend/service-account.yaml b/charts/langsmith/templates/hub-backend/service-account.yaml deleted file mode 100644 index 18bd8a7..0000000 --- a/charts/langsmith/templates/hub-backend/service-account.yaml +++ /dev/null @@ -1,16 +0,0 @@ -{{- if .Values.hubBackend.serviceAccount.create -}} -apiVersion: v1 -kind: ServiceAccount -metadata: - name: {{ include "hubBackend.serviceAccountName" . }} - labels: - {{- include "langsmith.labels" . | nindent 4 }} - {{- with.Values.hubBackend.serviceAccount.labels }} - {{- toYaml . | nindent 4 }} - {{- end }} - annotations: - {{- include "langsmith.annotations" . | nindent 4 }} - {{- with.Values.hubBackend.serviceAccount.annotations }} - {{- toYaml . | nindent 4 }} - {{- end }} -{{- end }} diff --git a/charts/langsmith/templates/hub-backend/service.yaml b/charts/langsmith/templates/hub-backend/service.yaml deleted file mode 100644 index b443673..0000000 --- a/charts/langsmith/templates/hub-backend/service.yaml +++ /dev/null @@ -1,29 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ include "langsmith.fullname" . }}-{{ .Values.hubBackend.name }} - labels: - {{- include "langsmith.labels" . | nindent 4 }} - {{- with.Values.hubBackend.service.labels }} - {{- toYaml . | nindent 4 }} - {{- end }} - annotations: - {{- include "langsmith.annotations" . | nindent 4 }} - {{- with.Values.hubBackend.service.annotations }} - {{- toYaml . | nindent 4 }} - {{- end }} -spec: - type: {{ .Values.hubBackend.service.type }} - {{- with .Values.hubBackend.service.loadBalancerSourceRanges }} - loadBalancerSourceRanges: - {{- toYaml . | nindent 4 }} - {{- end }} - loadBalancerIP: {{ .Values.hubBackend.service.loadBalancerIP }} - ports: - - name: hub-backend - port: {{ .Values.hubBackend.service.port }} - targetPort: hub-backend - protocol: TCP - selector: - {{- include "langsmith.selectorLabels" . | nindent 4 }} - app.kubernetes.io/component: {{ include "langsmith.fullname" . }}-{{ .Values.hubBackend.name }} diff --git a/charts/langsmith/values.yaml b/charts/langsmith/values.yaml index 33681dd..852a60c 100644 --- a/charts/langsmith/values.yaml +++ b/charts/langsmith/values.yaml @@ -15,19 +15,15 @@ images: backendImage: repository: "docker.io/langchain/langsmith-backend" pullPolicy: IfNotPresent - tag: "0.1.37" + tag: "0.2.0" frontendImage: repository: "docker.io/langchain/langsmith-frontend" pullPolicy: IfNotPresent - tag: "0.1.37" - hubBackendImage: - repository: "docker.io/langchain/langhub-backend" - pullPolicy: IfNotPresent - tag: "0.1.37" + tag: "0.2.0" playgroundImage: repository: "docker.io/langchain/langsmith-playground" pullPolicy: IfNotPresent - tag: "0.1.37" + tag: "0.2.0" postgresImage: repository: "docker.io/postgres" pullPolicy: IfNotPresent @@ -276,52 +272,6 @@ frontend: labels: {} annotations: {} -hubBackend: - name: "hub-backend" - containerPort: 1985 - deployment: - replicas: 1 - labels: {} - annotations: {} - podSecurityContext: {} - securityContext: {} - resources: {} -# limits: -# cpu: 1000m -# memory: 1Gi -# requests: -# cpu: 200m -# memory: 500Mi - command: [] - extraContainerConfig: {} - extraEnv: [] - sidecars: [] - nodeSelector: {} - tolerations: [] - affinity: {} - volumes: [] - volumeMounts: [] - autoscaling: - enabled: false - # If enabled, use the following values to configure the HPA. You can also use your own HPA configuration by not creating an HPA. - # You may want to manage the HPA yourself if you have a custom autoscaling setup like KEDA. - createHpa: true - minReplicas: 1 - maxReplicas: 5 - targetCPUUtilizationPercentage: 80 - service: - type: ClusterIP - port: 1985 - labels: {} - annotations: {} - loadBalancerSourceRanges: [] - loadBalancerIP: "" - serviceAccount: - create: true - name: "" - labels: {} - annotations: {} - playground: name: "playground" containerPort: 3001