Merge pull request #1771 from Felixnoo/update-cronjobs
Update Doc: CronJobs
|
|
@ -20,13 +20,13 @@ You need to create a workspace, a project and an account (`project-regular`). Th
|
|||
|
||||
Log in to the console as `project-regular`. Go to **Jobs** of a project, choose **CronJobs** and click **Create**.
|
||||
|
||||

|
||||

|
||||
|
||||
### Step 2: Enter basic information
|
||||
|
||||
Enter the basic information. You can refer to the image below for each field. When you finish, click **Next**.
|
||||
|
||||

|
||||

|
||||
|
||||
- **Name**: The name of the CronJob, which is also the unique identifier.
|
||||
- **Alias**: The alias name of the CronJob, making resources easier to identify.
|
||||
|
|
@ -61,17 +61,17 @@ Please refer to [Jobs](../jobs/#step-3-job-settings-optional).
|
|||
|
||||
### Step 4: Set an image
|
||||
|
||||
1. Click **Add Container Image** in **Container Image** and enter `busybox` in the search bar.
|
||||
1. Click **Add Container Image** in **Container Image**, enter `busybox` in the search bar, and press **Enter**.
|
||||
|
||||

|
||||

|
||||
|
||||
2. Scroll down to **Start Command** and enter `/bin/sh,-c,date; echo "KubeSphere!"` in the box under **Parameters**.
|
||||
|
||||

|
||||

|
||||
|
||||
3. Click **√** to finish setting the image and **Next** to continue.
|
||||
|
||||

|
||||

|
||||
|
||||
{{< notice note >}}
|
||||
|
||||
|
|
@ -85,23 +85,23 @@ Please refer to [Jobs](../jobs/#step-3-job-settings-optional).
|
|||
|
||||
1. In the final step of **Advanced Settings**, click **Create** to finish. A new item will be added to the CronJob list if the creation is successful. Besides, you can also find Jobs under **Jobs** tab.
|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||
2. Under **ConJobs** tab, click this CronJob and go to **Job Records** tab where you can see the information of each execution record. There are 3 successful CronJob executions as the field **successfulJobsHistoryLimit** is set to 3.
|
||||
2. Under the **ConJobs** tab, click this CronJob and go to the **Job Records** tab where you can see the information of each execution record. There are 3 successful CronJob executions as the field **successfulJobsHistoryLimit** is set to 3.
|
||||
|
||||

|
||||

|
||||
|
||||
3. Click any of them and you will be directed to the Job detail page.
|
||||
|
||||

|
||||

|
||||
|
||||
4. In **Resource Status**, you can inspect the Pod status. Click the arrow on the right and check the container log as shown below, which displays the expected output.
|
||||
4. In **Resource Status**, you can inspect the Pod status. Click <img src="/images/docs/project-user-guide/application-workloads/cronjobs/down-arrow.png" width="20px" /> on the right and check the container log as shown below, which displays the expected output.
|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||
## Check CronJob Details
|
||||
|
||||
|
|
@ -109,12 +109,12 @@ Please refer to [Jobs](../jobs/#step-3-job-settings-optional).
|
|||
|
||||
On the CronJob detail page, you can manage the CronJob after it is created.
|
||||
|
||||
- **Edit Info**: Edit the basic information except `Name` of the CronJob.
|
||||
- **Edit Information**: Edit the basic information except `Name` of the CronJob.
|
||||
- **Pause/Start**: Pause or start the Cronjob. Pausing a CronJob will tell the controller to suspend subsequent executions, which does not apply to executions that already start.
|
||||
- **Edit YAML**: Edit the CronJob's specification in YAML format.
|
||||
- **Delete**: Delete the CronJob, and return to the CronJob list page.
|
||||
|
||||

|
||||

|
||||
|
||||
### Job records
|
||||
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ weight: 10260
|
|||
|
||||
### 步骤 4:设置镜像
|
||||
|
||||
1. 点击**容器镜像**下的**添加容器镜像**,在搜索栏中输入 `busybox` 。
|
||||
1. 点击**容器镜像**下的**添加容器镜像**,在搜索栏中输入 `busybox`,然后按**回车**键。
|
||||
|
||||

|
||||
|
||||
|
|
@ -98,7 +98,7 @@ weight: 10260
|
|||
|
||||

|
||||
|
||||
4. 在**资源状态**中,您可以检查 Pod 状态。点击右侧的箭头,可以检查容器日志,如下所示,该日志显示预期输出。
|
||||
4. 在**资源状态**中,您可以检查 Pod 状态。点击右侧的 <img src="/images/docs/zh-cn/project-user-guide/application-workloads/cronjobs/down-arrow.png" width="20px" />,可以检查容器日志,如下所示,该日志显示预期输出。
|
||||
|
||||

|
||||
|
||||
|
|
|
|||
|
After Width: | Height: | Size: 483 KiB |
|
After Width: | Height: | Size: 572 KiB |
|
Before Width: | Height: | Size: 85 KiB |
|
Before Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 90 KiB |
|
Before Width: | Height: | Size: 90 KiB |
|
Before Width: | Height: | Size: 85 KiB |
|
Before Width: | Height: | Size: 86 KiB |
|
After Width: | Height: | Size: 534 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 185 KiB After Width: | Height: | Size: 205 KiB |
|
After Width: | Height: | Size: 575 KiB |
|
Before Width: | Height: | Size: 87 KiB |
|
Before Width: | Height: | Size: 85 KiB |
|
After Width: | Height: | Size: 450 KiB |
|
Before Width: | Height: | Size: 93 KiB |
|
Before Width: | Height: | Size: 79 KiB |
|
After Width: | Height: | Size: 498 KiB |
|
Before Width: | Height: | Size: 88 KiB |
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 221 KiB |
|
After Width: | Height: | Size: 589 KiB |
|
After Width: | Height: | Size: 319 KiB |
|
Before Width: | Height: | Size: 98 KiB After Width: | Height: | Size: 65 KiB |
|
After Width: | Height: | Size: 166 KiB |
|
After Width: | Height: | Size: 469 KiB |
|
Before Width: | Height: | Size: 93 KiB |
|
After Width: | Height: | Size: 451 KiB |
|
After Width: | Height: | Size: 583 KiB |
|
After Width: | Height: | Size: 2.2 KiB |