Adds kube namespace to internal addresses
This commit is contained in:
parent
6e60a8614c
commit
3e49ce6ae9
|
@ -172,10 +172,11 @@ namespace KubernetesWorkflow
|
|||
|
||||
private Address GetContainerInternalAddress(StartResult startResult, ContainerRecipe recipe, string tag)
|
||||
{
|
||||
var namespaceName = startResult.Cluster.Configuration.KubernetesNamespace;
|
||||
var serviceName = startResult.InternalService!.Name;
|
||||
var port = startResult.GetInternalServicePorts(recipe, tag);
|
||||
return new Address(
|
||||
$"http://{serviceName}",
|
||||
$"http://{namespaceName}/{serviceName}",
|
||||
port.Number);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue