How can I trigger a Kubernetes Scheduled Job manually?

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

    EDIT - July 2018: see @pedro_sland's answer as this feature has now been implemented

    My original answer below will remain correct for older versions of kubectl less than v1.10.1

    ========================================================================

    Aside from creating a new job (as the other answers have suggested), there is no current way to do this. It is a feature request in with kubernetes now that can be tracked here: https://github.com/kubernetes/kubernetes/issues/47538

提交回复
热议问题