ADD: reduced terminationGracePeriodSeconds to 5 seconds

This commit is contained in:
Henry Winkel
2024-02-15 17:52:07 +01:00
parent 7bc5e3f22e
commit a413b412df
4 changed files with 8 additions and 4 deletions

View File

@@ -193,7 +193,7 @@ namespace kubecontrol
node["spec"]["containers"][0]["command"].push_back(PodCommand_); node["spec"]["containers"][0]["command"].push_back(PodCommand_);
} }
node["spec"]["terminationGracePeriodSeconds"] = 10; node["spec"]["terminationGracePeriodSeconds"] = 5;
node["spec"]["restartPolicy"] = "Never"; node["spec"]["restartPolicy"] = "Never";
@@ -233,6 +233,10 @@ namespace kubecontrol
} }
} }
else {
std::this_thread::sleep_for(std::chrono::milliseconds(200));
}
return 0; return 0;
} }