Switching to ip + port internal addresses

This commit is contained in:
benbierens 2023-10-24 09:03:56 +02:00
parent eb70fe612b
commit 3326c42f7a
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
2 changed files with 2 additions and 6 deletions

View File

@ -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);

View File

@ -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");