I am looking for the following features in Kubernetes but unable to find documentation in this regards.
Thanks
What do you mean my Job scheduling? CronJob? If yes
_2. You can disable scheduling new Job
Suspend: true
// This flag tells the controller to suspend subsequent executions, it does
// not apply to already started executions.
Set Suspend field to be true
.
PATCH /apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}
// You need to patch in correct format
{
"spec":{
"suspend":"true"
}
}
_5. You can also get CronJob status. There you will find information about success/failure
GET /apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status
[1,3,4] these are not supported