Skip to content

Commit

Permalink
fix(K8s): fix uploader mount settings
Browse files Browse the repository at this point in the history
- 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: 陳鈞 <[email protected]>
  • Loading branch information
jim60105 committed May 21, 2024
1 parent 9d218c2 commit ffa4db1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SingletonServices/Kubernetes/KubernetesServiceBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,13 @@ protected Task<V1Job> 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<V1VolumeMount>
{
new()
{
Name = "sharedvolume",
MountPath = mountPath,
MountPath = "/sharedvolume",
}
},
Env = uploaderService.GetEnvironmentVariables()
Expand Down

0 comments on commit ffa4db1

Please sign in to comment.