0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

CronJobの動作検証にcreate jobコマンド

Last updated at Posted at 2022-11-29

概要

CronJobの動作を、設定した時刻とは別の任意のタイミングで確認する方法

CronJobをデプロイして、とりあえず動作確認したいときや、jobを再実行したいときなど、マニフェストに定義した時刻ではない任意のタイミングで実行したいことがあるが、そんなときkubectl create job --fromが便利

コマンド

kubectl create job ad-hoc-job --from=cronjob/base-cronjob

解説

create job実行時に--fromフラグでcronjobを指定すればjobとして起動できる

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?