ADD: reduced terminationGracePeriodSeconds to 5 seconds
This commit is contained in:
Submodule libs/curlpp updated: d845f2eb15...3fa83ba299
Submodule libs/nlohmann_json updated: 9cca280a4d...5d2754306d
Submodule libs/yaml-cpp updated: c7639e81d5...db03655d58
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user