diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index adc2104..dd4b9f6 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -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 }} diff --git a/helm/zeno/templates/deployment.yaml b/helm/zeno/templates/deployment.yaml index ad240d4..5b62bd4 100644 --- a/helm/zeno/templates/deployment.yaml +++ b/helm/zeno/templates/deployment.yaml @@ -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 diff --git a/helm/zeno/templates/ingress.yaml b/helm/zeno/templates/ingress.yaml index 82e473f..3801509 100644 --- a/helm/zeno/templates/ingress.yaml +++ b/helm/zeno/templates/ingress.yaml @@ -11,7 +11,9 @@ spec: tls: - hosts: - {{ .Values.api.host }} + {{- if .Values.langfuse.enabled }} - {{ .Values.langfuse.host }} + {{- end }} secretName: {{ .Release.Name }}-tls {{- end }} rules: @@ -25,6 +27,7 @@ spec: name: {{ .Release.Name }}-api port: number: 8000 + {{- if .Values.langfuse.enabled }} - host: {{ .Values.langfuse.host }} http: paths: @@ -34,4 +37,5 @@ spec: service: name: langfuse port: - number: 3000 \ No newline at end of file + number: 3000 + {{- end }} \ No newline at end of file diff --git a/helm/zeno/values-dev.yaml b/helm/zeno/values-dev.yaml new file mode 100644 index 0000000..99e3843 --- /dev/null +++ b/helm/zeno/values-dev.yaml @@ -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 diff --git a/helm/zeno/values.yaml b/helm/zeno/values.yaml index ffd492d..27cd5ec 100644 --- a/helm/zeno/values.yaml +++ b/helm/zeno/values.yaml @@ -13,6 +13,7 @@ secrets: AWS_SECRET_ACCESS_KEY: langfuse: + enabled: true host: langfuse.zeno.ds.io api: