How to change the number of completions?

To change the number of completions for a Kubernetes Job, you need to modify the completions field in the Job's YAML specification. Here’s how you can do it:

  1. Edit the Job YAML: Locate the completions field in your Job definition.

  2. Update the Value: Change the value to the desired number of completions.

Example

If you want to change the completions from 3 to 5, your YAML would look like this:

spec:
  completions: 5  # Change this value to the desired number
  1. Apply the Changes: Save the updated YAML file and apply the changes using:
kubectl apply -f your-job-file.yaml

Summary

This will update the Job to require the specified number of successful completions. If you have any more questions or need further assistance, feel free to ask!

0 Comments

no data
Be the first to share your comment!