How can I trigger a Kubernetes Scheduled Job manually?

前端 未结 7 511
抹茶落季
抹茶落季 2020-12-07 13:43

I\'ve created a Kubernetes Scheduled Job, which runs twice a day according to its schedule. However, I would like to trigger it manually for testing purposes. How can I do t

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-07 14:03

    If you want to test the job, create a Job config from your Cron Job (ScheduledJob) config and run it manually using the following command:

    kubectl create -f ./job.yaml
    

提交回复
热议问题