{
  "alfredsnippet" : {
    "snippet" : "# --- 8. 定時任務 (CronJob) ---\napiVersion: batch\/v1\nkind: CronJob\nmetadata:\n  name: my-backup-job         # <--- 任務名稱\n  namespace: default\nspec:\n  schedule: \"0 3 * * *\"       # <--- Crontab 語法 (範例：每天凌晨 3 點)\n  timeZone: \"Asia\/Taipei\"     # <--- 指定時區 (K8s 1.25+ 支援，強烈建議設定)\n  jobTemplate:\n    spec:\n      template:\n        spec:\n          containers:\n          - name: backup-tool\n            image: busybox    # <--- 執行任務的 Image\n            command:\n            - \/bin\/sh\n            - -c\n            - \"echo 'Start backup...'; sleep 10; echo 'Done!'\"\n          restartPolicy: OnFailure # <--- 失敗時才重啟 (不能設 Always)",
    "uid" : "8B13219D-F105-4292-BBEC-5382403BE415",
    "name" : "CronJob YAML 範本",
    "keyword" : ""
  }
}