Skip to content

Commit

Permalink
Merge pull request #426 from vprashar2929/fix-ms-v
Browse files Browse the repository at this point in the history
fix(modelserver): add volume mount for resource directory
  • Loading branch information
sthaha authored Oct 9, 2024
2 parents 5d5a399 + 329d455 commit bb677e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/components/modelserver/modelserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ func NewDeployment(deployName string, ms *v1alpha1.InternalModelServerSpec, name
volumes := []corev1.Volume{
storage,
k8s.VolumeFromConfigMap("cfm", configMapName),
k8s.VolumeFromEmptyDir("resource"),
}

mounts := []corev1.VolumeMount{{
Expand All @@ -80,6 +81,9 @@ func NewDeployment(deployName string, ms *v1alpha1.InternalModelServerSpec, name
}, {
Name: "mnt",
MountPath: "/mnt",
}, {
Name: "resource",
MountPath: "/usr/local/lib/python3.10/site-packages/resource",
}}

port := ms.Port
Expand Down

0 comments on commit bb677e2

Please sign in to comment.