The suspend field controls whether a Kubernetes Job executes. Set it to true to create a suspended Job; set it to false to allow execution. section 18.1.1
Create a suspended Job
Add `suspend: true` under the Job’s `spec`. Applying this manifest creates the Job object without creating any Pods. The Job records a Suspended event. section 18.1.1
Control the Job with kubectl:
- Resume it with `kubectl patch job demo-suspend -p '{"spec":{"suspend": false}}'`; the Job controller creates the Pod and records that the Job resumed. section 18.1.1
- Suspend a running Job with `kubectl patch job demo-suspend -p '{"spec":{"suspend": true}}'`; the controller immediately deletes its associated Pod and shuts down its containers gracefully. section 18.1.1
