Skip to content

Commit

Permalink
Merge pull request #17 from langchain-ai/infra/remove-api-servers
Browse files Browse the repository at this point in the history
Remove api servers from helm
  • Loading branch information
langchain-infra authored Nov 21, 2023
2 parents 0854cbc + 864723f commit a3f9ce0
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 288 deletions.
2 changes: 1 addition & 1 deletion charts/langsmith/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ maintainers:
email: [email protected]
description: Helm chart to deploy the langsmith application and all services it depends on.
type: application
version: 0.1.3
version: 0.1.4
appVersion: "0.1.0"
102 changes: 0 additions & 102 deletions charts/langsmith/templates/backend/api-deployment.yaml

This file was deleted.

26 changes: 0 additions & 26 deletions charts/langsmith/templates/backend/api-service.yaml

This file was deleted.

34 changes: 2 additions & 32 deletions charts/langsmith/templates/frontend/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@ metadata:
{{- include "langsmith.labels" . | nindent 4 }}
data:
nginx.conf: |
map $http_x_api_key $has_api_key {
default "";
"" "";
{{- if .Values.config.oauth.enabled }}
"~.*" "-api";
{{- end }}
}
server {
listen {{ .Values.frontend.containerPort }};
server_name localhost;
Expand All @@ -30,7 +23,6 @@ data:
location ~ /api/playground/ {
rewrite /api/playground/(.*) /$1 break;
chunked_transfer_encoding off;
proxy_set_header Connection '';
proxy_http_version 1.1;
proxy_buffering off;
Expand All @@ -40,7 +32,6 @@ data:
location = /api/playground {
rewrite /api/playground / break;
chunked_transfer_encoding off;
proxy_set_header Connection '';
proxy_http_version 1.1;
proxy_buffering off;
Expand All @@ -53,45 +44,24 @@ data:
proxy_pass http://{{ include "langsmith.fullname" . }}-{{ .Values.hubBackend.name }}:{{ .Values.hubBackend.service.port }};
}
{{- if .Values.config.oauth.enabled }}
# A dummy location. Resolve hub-backend api hostname
location = /api-hub-backend-dns {
proxy_pass http://{{ include "langsmith.fullname" . }}-{{ .Values.hubBackend.name }}-api:{{ .Values.hubBackend.service.port }};
}
{{- end }}
# Hub Backend Routes
location ~ /api-hub {
rewrite /api-hub/(.*) /$1 break;
chunked_transfer_encoding off;
proxy_set_header Connection '';
proxy_http_version 1.1;
proxy_buffering off;
proxy_cache off;
proxy_pass http://{{ include "langsmith.fullname" . }}-{{ .Values.hubBackend.name }}$has_api_key:{{ .Values.hubBackend.service.port }};
}
# A dummy location. Resolve backend hostname
location = /backend-dns {
proxy_pass http://{{ include "langsmith.fullname" . }}-{{ .Values.backend.name }}:{{ .Values.backend.service.port }};
}
{{- if .Values.config.oauth.enabled }}
# A dummy location. Resolve backend-api hostname
location = /api-backend-dns {
proxy_pass http://{{ include "langsmith.fullname" . }}-{{ .Values.backend.name }}-api:{{ .Values.backend.service.port }};
proxy_pass http://{{ include "langsmith.fullname" . }}-{{ .Values.hubBackend.name }}:{{ .Values.hubBackend.service.port }};
}
{{- end }}
# Backend Routes
location ~ /api {
rewrite /api/(.*) /$1 break;
chunked_transfer_encoding off;
proxy_set_header Connection '';
proxy_http_version 1.1;
proxy_buffering off;
proxy_cache off;
proxy_pass http://{{ include "langsmith.fullname" . }}-{{ .Values.backend.name }}$has_api_key:{{ .Values.backend.service.port }};
proxy_pass http://{{ include "langsmith.fullname" . }}-{{ .Values.backend.name }}:{{ .Values.backend.service.port }};
}
}
97 changes: 0 additions & 97 deletions charts/langsmith/templates/hub-backend/api-deployment.yaml

This file was deleted.

26 changes: 0 additions & 26 deletions charts/langsmith/templates/hub-backend/api-service.yaml

This file was deleted.

8 changes: 4 additions & 4 deletions charts/langsmith/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ images:
backendImage:
repository: "docker.io/langchain/langchainplus-backend"
pullPolicy: IfNotPresent
tag: "99d8f59"
tag: "5543bee"
frontendImage:
repository: "docker.io/langchain/langchainplus-frontend-dynamic"
pullPolicy: IfNotPresent
tag: "99d8f59"
tag: "5543bee"
hubBackendImage:
repository: "docker.io/langchain/langchainhub-backend"
pullPolicy: IfNotPresent
tag: "99d8f59"
tag: "5543bee"
playgroundImage:
repository: "docker.io/langchain/langchainplus-playground"
pullPolicy: IfNotPresent
tag: "99d8f59"
tag: "5543bee"
postgresImage:
repository: "docker.io/postgres"
pullPolicy: IfNotPresent
Expand Down

0 comments on commit a3f9ce0

Please sign in to comment.