From a3212a570eef104ce479eb261582c34047424fcf Mon Sep 17 00:00:00 2001 From: apalma Date: Thu, 21 Dec 2023 11:10:42 +0100 Subject: [PATCH] fix: parametrize volume mount directory --- charts/cog-ai-model/templates/deployment.yaml | 2 +- charts/cog-ai-model/values.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/cog-ai-model/templates/deployment.yaml b/charts/cog-ai-model/templates/deployment.yaml index 341df42..2e534d9 100644 --- a/charts/cog-ai-model/templates/deployment.yaml +++ b/charts/cog-ai-model/templates/deployment.yaml @@ -65,7 +65,7 @@ spec: {{- toYaml .Values.resources | nindent 12 }} volumeMounts: - name: model-data-volume - mountPath: "/src/model_data" + mountPath: {{ .Values.config.modelMountDir }} volumes: - name: model-data-volume hostPath: diff --git a/charts/cog-ai-model/values.yaml b/charts/cog-ai-model/values.yaml index 0900245..cfcc1bc 100644 --- a/charts/cog-ai-model/values.yaml +++ b/charts/cog-ai-model/values.yaml @@ -11,9 +11,9 @@ image: tag: "" config: - modelRepo: "https://huggingface.co/THUDM/cogvlm-chat-hfnv" - modelRepo: "https://the-repository-of-the-model" + modelRepo: "https://huggingface.co/THUDM/cogvlm-chat-hfnv" #"https://the-repository-of-the-model" modelLocalDir: "/var/model/" + modelMountDir: "/src/model_data" imagePullSecrets: [] nameOverride: ""