Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

delete completed kubernetes jobs

apiVersion: batch/v1
kind: CronJob
metadata:
  name: my-cron-job
spec:
  schedule: "*/10 * * * *"
  failedJobsHistoryLimit: 1
  successfulJobsHistoryLimit: 3
  jobTemplate:
    spec:
      template:
         ...
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #delete #completed #kubernetes #jobs
ADD COMMENT
Topic
Name
7+6 =