How can I trigger a Kubernetes Scheduled Job manually?

前端 未结 7 560
抹茶落季
抹茶落季 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:08

    Unfortunately, none of the example syntax above works in Google Kubernetes Engine (GCP). Also, the GKE docs themselves are wrong. :(

    In Kubernetes 1.10.6.gke-2, the working syntax is

    kubectl create job  --from=cronjob/ -n 
    

提交回复
热议问题