bumps timeout because cluster might need to start more nodes

This commit is contained in:
benbierens 2023-10-05 08:58:05 +02:00
parent 8fb63213bc
commit b365d4c0ba
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
2 changed files with 6 additions and 5 deletions

View File

@ -87,8 +87,8 @@ namespace CodexNetDeployer
var configuration = new KubernetesWorkflow.Configuration(
kubeConfig,
operationTimeout: TimeSpan.FromSeconds(120),
retryDelay: TimeSpan.FromSeconds(3),
operationTimeout: TimeSpan.FromSeconds(300),
retryDelay: TimeSpan.FromSeconds(10),
kubernetesNamespace: config.KubeNamespace);
var result = new EntryPoint(log, configuration, string.Empty);

View File

@ -23,9 +23,6 @@ public class Program
return;
}
var deployer = new Deployer(config);
deployer.AnnouncePlugins();
if (!args.Any(a => a == "-y"))
{
Console.WriteLine("Does the above config look good? [y/n]");
@ -35,6 +32,8 @@ public class Program
if (config.Replication == 0)
{
var deployer = new Deployer(config);
deployer.AnnouncePlugins();
var deployment = deployer.Deploy();
Console.WriteLine($"Writing deployment file '{config.DeployFile}'...");
@ -50,6 +49,8 @@ public class Program
config.KubeNamespace = originalNamespace + "-" + i;
config.DeployFile = originalDeployFile.ToLowerInvariant().Replace(".json", $"-{i}.json");
var deployer = new Deployer(config);
deployer.AnnouncePlugins();
var deployment = deployer.Deploy();
Console.WriteLine($"Writing deployment file '{config.DeployFile}'...");