Switching to ip + port internal addresses
This commit is contained in:
parent
eb70fe612b
commit
3326c42f7a
|
@ -172,11 +172,6 @@ namespace KubernetesWorkflow
|
|||
|
||||
private Address GetContainerInternalAddress(RunningPod pod, Port port)
|
||||
{
|
||||
//var serviceName = "service-" + numberSource.WorkflowNumber;
|
||||
//return new Address(
|
||||
// $"http://{serviceName}.{k8sNamespace}.svc.cluster.local",
|
||||
// port.Number);
|
||||
|
||||
return new Address(
|
||||
$"http://{pod.PodInfo.Ip}",
|
||||
port.Number);
|
||||
|
|
|
@ -17,7 +17,8 @@ namespace CodexContractsPlugin
|
|||
{
|
||||
var config = startupConfig.Get<CodexContractsContainerConfig>();
|
||||
|
||||
var address = config.GethNode.StartResult.Container.GetAddress(GethContainerRecipe.HttpPortTag);
|
||||
var containerPort = config.GethNode.StartResult.Container.GetContainerPort(GethContainerRecipe.HttpPortTag);
|
||||
var address = containerPort.InternalAddress;
|
||||
|
||||
AddEnvVar("DISTTEST_NETWORK_URL", address.ToString());
|
||||
AddEnvVar("HARDHAT_NETWORK", "codexdisttestnetwork");
|
||||
|
|
Loading…
Reference in New Issue