Knowledge Base
2025.10
GENERIC
Networking
Storage
Compute
Designate
Orchestration
Self-Hosted
Install
UPGRADE
Monitoring
Add-Ons
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
How to Modify "FailedJobsHistoryLimit" or "SuccessfulJobsHistoryLimit" Settings for CronJobs?
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
To modify the default values for FailedJobsHistoryLimit or SuccessfulJobsHistoryLimit settings in CronJobs.
Environment
- Self-Hosted Private Cloud Director - Virtualisation: v2025.4 and Higher.
- Self-Hosted Private Cloud Director - Kubernetes: v2025.4 and Higher.
- Private Cloud Director - Virtualisation: v2025.4 and Higher.
- Private Cloud Director - Kubernetes: v2025.4 and Higher.
Procedure
- Take the backup of the existing cronjob using the below command:
Command
xxxxxxxxxx$ kubectl get cronjob -n <REGION_NAMESPACE> <CRONJOB_NAME> -o yaml > <cronjob-name>.bk- Edit the cronjob object file.
Command
xxxxxxxxxx$ kubectl edit cronjob -n <REGION_NAMESPACE> <CRONJOB_NAME>- Under
specsection modify the desired value forFailedJobsHistoryLimitorSuccessfulJobsHistoryLimit.
Edit Cronjob
xxxxxxxxxxspec: failedJobsHistoryLimit: 2 <--- Update desired value for failedJobsHistoryLimit . . successfulJobsHistoryLimit: 4 <--- Update desired value for successfulJobsHistoryLimit- Save the file.
Command
xxxxxxxxxx$ kubectl edit cronjob -n <REGION_NAMESPACE> <CRONJOB_NAME>cronjob.batch/<cronjob-name> edited- Verify the change.
Command
xxxxxxxxxx$ kubectl get cronjob -n <REGION_NAMESPACE> <CRONJOB_NAME> -o yamlAdditional Information
To update the default values for all CronJobs, apply the same procedure to each one.
VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Next to read:
Multiple Instance Creation Failed Due to Max Scheduling Attempts Exceeded for Cinder Volumenull
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message