From 19abffc3de4d315ed0bd69d0514de2d024c93c39 Mon Sep 17 00:00:00 2001 From: Edward Park Date: Fri, 19 Jan 2024 13:30:56 -0800 Subject: [PATCH] fix(server): mounted fs path for static-ui-dir --- charts/prefect-server/templates/deployment.yaml | 5 +++++ charts/prefect-server/values.yaml | 2 ++ 2 files changed, 7 insertions(+) diff --git a/charts/prefect-server/templates/deployment.yaml b/charts/prefect-server/templates/deployment.yaml index e74a78cf..592d4b6e 100644 --- a/charts/prefect-server/templates/deployment.yaml +++ b/charts/prefect-server/templates/deployment.yaml @@ -95,6 +95,8 @@ spec: - name: PREFECT_UI_URL value: {{ .Values.server.uiConfig.prefectUiUrl | quote }} {{- end }} + - name: PREFECT_UI_STATIC_DIRECTORY + value: {{ .Values.server.uiConfig.prefectUiStaticDirectory | quote }} {{- if .Values.postgresql.enabled }} - name: PREFECT_API_DATABASE_CONNECTION_URL valueFrom: @@ -141,6 +143,9 @@ spec: - mountPath: /tmp name: scratch subPathExpr: tmp + - mountPath: {{ .Values.server.uiConfig.prefectUiStaticDirectory }} + name: scratch + subPathExpr: ui-build {{- if .Values.server.extraVolumeMounts }} {{- include "common.tplvalues.render" (dict "value" .Values.server.extraVolumeMounts "context" $) | nindent 12 }} {{- end }} diff --git a/charts/prefect-server/values.yaml b/charts/prefect-server/values.yaml index f9356042..fc1d788e 100644 --- a/charts/prefect-server/values.yaml +++ b/charts/prefect-server/values.yaml @@ -54,6 +54,8 @@ server: prefectUiApiUrl: "" # -- sets PREFECT_UI_URL prefectUiUrl: "" + # -- sets PREFECT_UI_STATIC_DIRECTORY + prefectUiStaticDirectory: "/ui_build" # see here for a full list of possible environment variables - https://docs.prefect.io/latest/api-ref/prefect/settings/ # -- array with environment variables to add to server nodes