Skip to content

Commit

Permalink
Deploy dev instance of API
Browse files Browse the repository at this point in the history
  • Loading branch information
sunu committed Nov 28, 2024
1 parent c130c45 commit 009cc48
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,18 @@ jobs:
--set secrets.api.ANTHROPIC_API_KEY=${{ secrets.ANTHROPIC_API_KEY }}
--set secrets.api.AWS_ACCESS_KEY_ID=${{ secrets.S3_READONLY_AWS_ACCESS_KEY_ID }}
--set secrets.api.AWS_SECRET_ACCESS_KEY=${{ secrets.S3_READONLY_AWS_SECRET_ACCESS_KEY }}
- name: Helm Deploy Zeno Dev Instance
if: github.event_name == 'pull_request'
working-directory: ./helm
run: >
helm upgrade --install zeno-dev ./zeno
-f zeno/values-dev.yaml
--namespace zeno-dev
--create-namespace
--set secrets.langfuse.INIT_USER_PASSWORD=${{ secrets.LANGFUSE_INIT_USER_PASSWORD }}
--set secrets.langfuse.INIT_PROJECT_SECRET_KEY=${{ secrets.DEV_LANGFUSE_INIT_PROJECT_SECRET_KEY }}
--set secrets.langfuse.INIT_PROJECT_PUBLIC_KEY=${{ secrets.DEV_LANGFUSE_INIT_PROJECT_PUBLIC_KEY }}
--set secrets.api.OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}
--set secrets.api.ANTHROPIC_API_KEY=${{ secrets.ANTHROPIC_API_KEY }}
--set secrets.api.AWS_ACCESS_KEY_ID=${{ secrets.S3_READONLY_AWS_ACCESS_KEY_ID }}
--set secrets.api.AWS_SECRET_ACCESS_KEY=${{ secrets.S3_READONLY_AWS_SECRET_ACCESS_KEY }}
2 changes: 2 additions & 0 deletions helm/zeno/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ spec:
labels:
app: zeno
component: api
annotations:
force-update: {{ randAlphaNum 5 | quote }} # random annotation to force update
spec:
initContainers:
- name: s3-data-sync
Expand Down
6 changes: 5 additions & 1 deletion helm/zeno/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ spec:
tls:
- hosts:
- {{ .Values.api.host }}
{{- if .Values.langfuse.enabled }}
- {{ .Values.langfuse.host }}
{{- end }}
secretName: {{ .Release.Name }}-tls
{{- end }}
rules:
Expand All @@ -25,6 +27,7 @@ spec:
name: {{ .Release.Name }}-api
port:
number: 8000
{{- if .Values.langfuse.enabled }}
- host: {{ .Values.langfuse.host }}
http:
paths:
Expand All @@ -34,4 +37,5 @@ spec:
service:
name: langfuse
port:
number: 3000
number: 3000
{{- end }}
25 changes: 25 additions & 0 deletions helm/zeno/values-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
config:
enable_tls: true

secrets:
langfuse:
INIT_USER_PASSWORD:
INIT_PROJECT_SECRET_KEY:
INIT_PROJECT_PUBLIC_KEY:
api:
OPENAI_API_KEY:
ANTHROPIC_API_KEY:
AWS_ACCESS_KEY_ID:
AWS_SECRET_ACCESS_KEY:

langfuse:
enabled: false

api:
host: dev.api.zeno.ds.io
replicas: 1
image:
repository: public.ecr.aws/b7u8b0a6/project-zeno/zeno
tag: be03db212be647c9a7fc36c6ff85cb8bf6bbf20e
config:
LANGFUSE_HOST: https://langfuse.zeno.ds.io
1 change: 1 addition & 0 deletions helm/zeno/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ secrets:
AWS_SECRET_ACCESS_KEY:

langfuse:
enabled: true
host: langfuse.zeno.ds.io

api:
Expand Down

0 comments on commit 009cc48

Please sign in to comment.