@@ -368,10 +368,12 @@ func composeHypervisorInitContainer(spec *v1.PodSpec, pool *tfv1.GPUPool) {
368368}
369369
370370func composeHypervisorContainer (spec * v1.PodSpec , pool * tfv1.GPUPool ) {
371+ spec .HostNetwork = true
371372 spec .Containers [0 ].VolumeMounts = append (spec .Containers [0 ].VolumeMounts , v1.VolumeMount {
372373 Name : constants .DataVolumeName ,
373374 ReadOnly : false ,
374- MountPath : constants .TFDataPath ,
375+ MountPath : constants .SharedMemDeviceName ,
376+ SubPath : constants .SharedMemMountSubPath ,
375377 }, v1.VolumeMount {
376378 Name : constants .LogsVolumeName ,
377379 MountPath : constants .TensorFusionLogPath ,
@@ -420,12 +422,6 @@ func composeHypervisorContainer(spec *v1.PodSpec, pool *tfv1.GPUPool) {
420422 if pool .Spec .ComponentConfig .Hypervisor .Image != "" {
421423 spec .Containers [0 ].Image = pool .Spec .ComponentConfig .Hypervisor .Image
422424 }
423- spec .Containers [0 ].Ports = append (spec .Containers [0 ].Ports , v1.ContainerPort {
424- ContainerPort : port ,
425- HostPort : port ,
426- Name : constants .HypervisorPortName ,
427- Protocol : v1 .ProtocolTCP ,
428- })
429425
430426 if len (spec .Containers [0 ].Resources .Requests ) == 0 {
431427 spec .Containers [0 ].Resources .Requests = hypervisorDefaultRequests
0 commit comments