我正在查找Kubernetes中的以下特性,但无法找到这方面的文档。
谢谢
发布于 2018-01-30 20:20:56
什么叫我的作业计划?CronJob?如果是
_2。您可以禁用计划新作业
Suspend: true
// This flag tells the controller to suspend subsequent executions, it does
// not apply to already started executions.将挂起字段设置为true。
PATCH /apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}
// You need to patch in correct format
{
"spec":{
"suspend":"true"
}
}_5。您也可以获得CronJob状态。在那里你会发现关于成功/失败的信息。
GET /apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status1,3,4不支持
https://stackoverflow.com/questions/48529603
复制相似问题