ADD: reduced terminationGracePeriodSeconds to 5 seconds
This commit is contained in:
@@ -193,7 +193,7 @@ namespace kubecontrol
|
||||
node["spec"]["containers"][0]["command"].push_back(PodCommand_);
|
||||
}
|
||||
|
||||
node["spec"]["terminationGracePeriodSeconds"] = 10;
|
||||
node["spec"]["terminationGracePeriodSeconds"] = 5;
|
||||
|
||||
node["spec"]["restartPolicy"] = "Never";
|
||||
|
||||
@@ -233,6 +233,10 @@ namespace kubecontrol
|
||||
|
||||
}
|
||||
}
|
||||
else {
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(200));
|
||||
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user