From f5fb44c59bb0d5256d19e57612b450559c751c48 Mon Sep 17 00:00:00 2001 From: Aleksandr Melnikov Date: Thu, 5 Nov 2020 12:13:43 -0800 Subject: [PATCH] Port and TargetPort are assumed to be the same. If Tensorboard has 6006 set, we also set it to 6006. --- pkg/workflow_execution.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/workflow_execution.go b/pkg/workflow_execution.go index 194f18f..77da0d8 100644 --- a/pkg/workflow_execution.go +++ b/pkg/workflow_execution.go @@ -429,7 +429,7 @@ func (c *Client) createWorkflow(namespace string, workflowTemplateID uint64, wor Name: port.Name, Protocol: port.Protocol, Port: port.ContainerPort, - TargetPort: intstr.FromInt(int(port.HostPort)), + TargetPort: intstr.FromInt(int(port.ContainerPort)), } servicePorts = append(servicePorts, servicePort) route := networking.HTTPRoute{