Chore: update link

Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
This commit is contained in:
Jianbo Sun 2022-05-11 17:56:21 +08:00
parent 50fd7fc2b5
commit 64682bd274
6 changed files with 6 additions and 76 deletions

View File

@ -2,4 +2,4 @@
title: Deploy Task or Cron Task
---
This docs are migrated, please refer to the reference documents.
This docs are migrated, please refer to the [reference documents](../../components/references).

View File

@ -2,39 +2,4 @@
title: 部署一次性或周期性任务
---
> 此类型适用于 UI 和 CLI
### 一次性任务Task描述运行代码或脚本以完成的作业
```yaml
apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: app-worker
spec:
components:
- name: mytask
type: task
properties:
image: perl
count: 10
cmd: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"]
```
### 描述一个定时任务
```yaml
apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: cron-worker
spec:
components:
- name: mytask
type: cron-task
properties:
image: perl
count: 10
cmd: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"]
schedule: "*/1 * * * *"
```
文档已迁移至 [组件类型参考文档](../../components/references).

View File

@ -201,7 +201,7 @@ $ vela workflow resume app-with-k8s-objects
## 分发引用的外部 Kubernetes 对象
> 开始这部分之前需要你先了解使用 CLI 如何进行多集群应用的部署。你可以参考 [多集群应用交付](../../case-studies/multi-cluster) 章节.
> 开始这部分之前需要你先了解使用 CLI 如何进行多集群应用的部署。你可以参考 [多集群应用交付](../case-studies/multi-cluster) 章节.
## 在组件中引用已有的 Kubernetes 对象

View File

@ -2,39 +2,4 @@
title: 部署一次性或周期性任务
---
> 此类型适用于 UI 和 CLI
### 一次性任务Task描述运行代码或脚本以完成的作业
```yaml
apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: app-worker
spec:
components:
- name: mytask
type: task
properties:
image: perl
count: 10
cmd: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"]
```
### 描述一个定时任务
```yaml
apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: cron-worker
spec:
components:
- name: mytask
type: cron-task
properties:
image: perl
count: 10
cmd: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"]
schedule: "*/1 * * * *"
```
文档已迁移至 [组件类型参考文档](../../components/references).

View File

@ -201,7 +201,7 @@ $ vela workflow resume app-with-k8s-objects
## 分发引用的外部 Kubernetes 对象
> 开始这部分之前需要你先了解使用 CLI 如何进行多集群应用的部署。你可以参考 [多集群应用交付](../../case-studies/multi-cluster) 章节.
> 开始这部分之前需要你先了解使用 CLI 如何进行多集群应用的部署。你可以参考 [多集群应用交付](../case-studies/multi-cluster) 章节.
## 在组件中引用已有的 Kubernetes 对象

View File

@ -2,4 +2,4 @@
title: Deploy Task or Cron Task
---
This docs are migrated, please refer to the reference documents.
This docs are migrated, please refer to the [reference documents](../../components/references).