Port and TargetPort are assumed to be the same.

If Tensorboard has 6006 set, we also set it to 6006.
This commit is contained in:
Aleksandr Melnikov
2020-11-05 12:13:43 -08:00
parent 6d42a44957
commit f5fb44c59b

View File

@@ -429,7 +429,7 @@ func (c *Client) createWorkflow(namespace string, workflowTemplateID uint64, wor
Name: port.Name, Name: port.Name,
Protocol: port.Protocol, Protocol: port.Protocol,
Port: port.ContainerPort, Port: port.ContainerPort,
TargetPort: intstr.FromInt(int(port.HostPort)), TargetPort: intstr.FromInt(int(port.ContainerPort)),
} }
servicePorts = append(servicePorts, servicePort) servicePorts = append(servicePorts, servicePort)
route := networking.HTTPRoute{ route := networking.HTTPRoute{