任务
Nanocl 中,Job 是要运行的命令列表。
与 Cargo 不同,它预期会停止运行。
下面是用于创建任务的 JobPartial OpenAPI 规范:
required | 数组元素类型 objects (Config) 要运行的容器列表。 |
null or ImagePullPolicy (string) | |
| ImagePullSecret | string or null 拉取镜像时使用的 Secret。 |
object 用户定义的元数据。 | |
| Name required | string 任务名称。 |
| Schedule | string or null 五字段 cron 表达式或支持的快捷形式;参见 [ |
| Secrets | 数组元素类型 strings or null 作为环境变量加载的 Secret。 |
| Ttl | integer or null >= 0 执行完成 x 秒后移除任务。 |
最后更新于