728x90
cronjob
-
Kubernetes(K8S): Job & CronJob공부합시다!/Kubernetes 2023. 1. 3. 00:12
Linux를 운영할 때 단순 1회성 작업은 at, 주기적인 작업은 cron으로 처리를 했습니다. 2023.01.03 - [공부합시다!/LInux] - CentOS7: at & cron K8S에서 역시 동일한 기능을 제공합니다. 단순 1회성 작업은 Job, 주기적인 작업은 CronJob으로 처리를 합니다. 아래 hello world를 10번 출력하는 code를 이용해 보도록 하겠습니다. # vi for.sh #! /bin/bash for a in {1..10} do echo hello world: $a done # sh for.sh hello world: 1 hello world: 2 hello world: 3 hello world: 4 hello world: 5 hello world: 6 hello wo..