From ffa4db180f970f92b55ebf61ebe10c8a0f870cdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=B3=E9=88=9E?= Date: Tue, 21 May 2024 11:02:41 +0800 Subject: [PATCH] fix(K8s): fix uploader mount settings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Changed the argument path in `KubernetesServiceBase` to be filename only instead of a combination of mount path and filename - Fixed hardcoded 'MountPath' to be "/sharedvolume" in `KubernetesServiceBase` instead of dynamic mount path Signed-off-by: 陳鈞 --- SingletonServices/Kubernetes/KubernetesServiceBase.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SingletonServices/Kubernetes/KubernetesServiceBase.cs b/SingletonServices/Kubernetes/KubernetesServiceBase.cs index 3f05664..a029e53 100644 --- a/SingletonServices/Kubernetes/KubernetesServiceBase.cs +++ b/SingletonServices/Kubernetes/KubernetesServiceBase.cs @@ -114,13 +114,13 @@ protected Task CreateInstanceAsync(string deploymentName, false => DefaultRegistry + uploaderService.Image, true => FallbackRegistry + uploaderService.Image }, - Args = [Path.Combine(mountPath, fileName.Replace(".mp4", ""))], + Args = [fileName.Replace(".mp4", "")], VolumeMounts = new List { new() { Name = "sharedvolume", - MountPath = mountPath, + MountPath = "/sharedvolume", } }, Env = uploaderService.GetEnvironmentVariables()