Disabling cronjob in Kubernetes

后端 未结 1 1364
名媛妹妹
名媛妹妹 2021-02-01 00:59

I have scheduled an application to run as Cronjob in Kubernetes. When there is code change, I\'m changing image in CronJob.

I\'m looking for an option where I can disabl

相关标签:
1条回答
  • 2021-02-01 01:50

    If you want to suspend cronjob via patch, use:

    kubectl patch cronjobs <job-name> -p '{"spec" : {"suspend" : true }}'
    
    0 讨论(0)
提交回复
热议问题