diff --git a/content/en/docs/project-user-guide/application-workloads/jobs.md b/content/en/docs/project-user-guide/application-workloads/jobs.md
index dd58e1e6e..d3e6abdad 100644
--- a/content/en/docs/project-user-guide/application-workloads/jobs.md
+++ b/content/en/docs/project-user-guide/application-workloads/jobs.md
@@ -7,11 +7,11 @@ linkTitle: "Jobs"
weight: 10250
---
-A Job creates one or more Pods and ensures that a specified number of them successfully terminate. As Pods successfully complete, the Job tracks the successful completions. When a specified number of successful completions is reached, the task (ie, Job) is complete. Deleting a Job will clean up the Pods it created.
+A Job creates one or more Pods and ensures that a specified number of them successfully terminates. As Pods successfully complete, the Job tracks the successful completions. When a specified number of successful completions is reached, the task (namely, Job) is complete. Deleting a Job will clean up the Pods it created.
-A simple case is to create one Job object in order to reliably run one Pod to completion. The Job object will start a new Pod if the first Pod fails or is deleted (for example due to a node hardware failure or a node reboot). You can also use a Job to run multiple Pods in parallel.
+A simple case is to create one Job object in order to reliably run one Pod to completion. The Job object will start a new Pod if the first Pod fails or is deleted (for example, due to a node hardware failure or a node reboot). You can also use a Job to run multiple Pods in parallel.
-The following example demonstrates specific steps of creating a Job (computing π to 2000 decimal places) in KubeSphere.
+The following example demonstrates specific steps of creating a Job (computing π to 2000 decimal places) on KubeSphere.
## Prerequisites
@@ -23,7 +23,7 @@ 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** under **Application Workloads** and click **Create**.
-
+
### Step 2: Enter basic information
@@ -33,13 +33,13 @@ Enter the basic information. Refer to the image below as an example.
- **Alias**: The alias name of the Job, making resources easier to identify.
- **Description**: The description of the Job, which gives a brief introduction of the Job.
-
+
### Step 3: Job settings (optional)
You can set the values in this step as below or click **Next** to use the default values. Refer to the table below for detailed explanations of each field.
-
+
| Name | Definition | Description |
| ----------------------- | ---------------------------- | ------------------------------------------------------------ |
@@ -56,33 +56,31 @@ You can set the values in this step as below or click **Next** to use the defaul
- If **Restart Policy** is set to **OnFailure**, the Job will internally restart the container when the Pod fails, instead of creating a new Pod.
- 
+ 
-2. Click **Add Container Image** which directs you to the **Add Container** page. Enter `perl` in the image search bar and press the **Return** key.
+2. Click **Add Container Image** which directs you to the **Add Container** page. Enter `perl` in the image search bar and press **Enter**.
- 
+ 
-3. On the same page, scroll down to **Start Command**. Enter the following commands in the box which computes pi to 2000 places then prints it. Click **√** in the bottom-right corner and select **Next** to continue.
+3. On the same page, scroll down to **Start Command**. Enter the following commands in the box which computes pi to 2000 places then prints it. Click **√** in the lower-right corner and select **Next** to continue.
```bash
perl,-Mbignum=bpi,-wle,print bpi(2000)
```
- 
+ 
- {{< notice note >}}
-For more information about setting images, see [Container Image Settings](../container-image-settings/).
- {{ notice >}}
+ {{< notice note >}}For more information about setting images, see [Container Image Settings](../container-image-settings/).{{ notice >}}
### Step 5: Inspect the Job manifest (optional)
-1. Enable **Edit Mode** in the top-right corner which displays the manifest file of the Job. You can see all the values are set based on what you have specified in the previous steps.
+1. Enable **Edit Mode** in the upper-right corner which displays the manifest file of the Job. You can see all the values are set based on what you have specified in the previous steps.
```yaml
apiVersion: batch/v1
kind: Job
metadata:
- namespace: cc
+ namespace: demo-project
labels:
app: job-test-1
name: job-test-1
@@ -94,11 +92,9 @@ For more information about setting images, see [Container Image Settings](../con
metadata:
labels:
app: job-test-1
- annotations:
- kubesphere.io/containerSecrets: null
spec:
containers:
- - name: container-xv4p2o
+ - name: container-4rwiyb
imagePullPolicy: IfNotPresent
image: perl
command:
@@ -112,36 +108,34 @@ For more information about setting images, see [Container Image Settings](../con
volumes: []
imagePullSecrets: null
backoffLimit: 5
- parallelism: 2
completions: 4
+ parallelism: 2
activeDeadlineSeconds: 300
```
-
+
2. You can make adjustments in the manifest directly and click **Create** or disable the **Edit Mode** and get back to the **Create Job** page.
- {{< notice note >}}
-You can skip **Mount Volumes** and **Advanced Settings** for this tutorial. For more information, see [Mount volumes](../deployments/#step-4-mount-volumes) and [Configure advanced settings](../deployments/#step-5-configure-advanced-settings).
- {{ notice >}}
+ {{< notice note >}}You can skip **Mount Volumes** and **Advanced Settings** for this tutorial. For more information, see [Mount volumes](../deployments/#step-4-mount-volumes) and [Configure advanced settings](../deployments/#step-5-configure-advanced-settings).{{ notice >}}
### Step 6: Check the result
1. In the final step of **Advanced Settings**, click **Create** to finish. A new item will be added to the Job list if the creation is successful.
- 
+ 
2. Click this Job and go to **Execution Records** where you can see the information of each execution record. There are four completed Pods since **Completions** was set to `4` in Step 3.
- 
+ 
{{< notice tip >}}
You can rerun the Job if it fails, the reason of which displays under **Messages**.
{{ notice >}}
-3. In **Resource Status**, you can inspect the Pod status. Two Pods were created each time as **Parallelism** was set to 2. Click the arrow on the right and check the container log as shown below, which displays the expected calculation result.
+3. In **Resource Status**, you can inspect the Pod status. Two Pods were created each time as **Parallelism** was set to 2. Click
on the right and check the container log as shown below, which displays the expected calculation result.
- 
+ 
- 
+ 
{{< notice tip >}}
@@ -158,12 +152,12 @@ You can rerun the Job if it fails, the reason of which displays under **Messages
On the Job detail page, you can manage the Job after it is created.
-- **Edit Info**: Edit the basic information except `Name` of the job.
+- **Edit Info**: Edit the basic information except `Name` of the Job.
- **Rerun Job**: Rerun the Job, the Pod will restart, and a new execution record will be generated.
- **View YAML**: View the Job's specification in YAML format.
- **Delete**: Delete the Job and return to the Job list page.
-
+
### Execution records
@@ -177,7 +171,7 @@ On the Job detail page, you can manage the Job after it is created.
1. Click the **Resource Status** tab to view the Pods of the Job.
- 
+ 
2. Click
to refresh the Pod information, and click
/
to display/hide the containers in each Pod.
@@ -191,7 +185,7 @@ Click the **Metadata** tab to view the labels and annotations of the Job.
Click the **Environment Variables** tab to view the environment variables of the Job.
-
+
### Events
diff --git a/content/zh/docs/project-user-guide/application-workloads/jobs.md b/content/zh/docs/project-user-guide/application-workloads/jobs.md
index d39e9658f..f4c9550c9 100644
--- a/content/zh/docs/project-user-guide/application-workloads/jobs.md
+++ b/content/zh/docs/project-user-guide/application-workloads/jobs.md
@@ -131,7 +131,7 @@ weight: 10250
{{< notice tip >}}如果任务失败,您可以重新运行该任务,失败原因显示在**消息**下。{{ notice >}}
-3. 在**资源状态**中,您可以查看 Pod 状态。先前将**并行数**设置为 2,因此每次会创建两个 Pod。点击右侧的箭头,查看容器日志,如下所示,该日志显示了预期的计算结果。
+3. 在**资源状态**中,您可以查看 Pod 状态。先前将**并行数**设置为 2,因此每次会创建两个 Pod。点击右侧的
,查看容器日志,如下所示,该日志显示了预期的计算结果。

diff --git a/static/images/docs/project-user-guide/application-workloads/jobs/add-container-image-job.png b/static/images/docs/project-user-guide/application-workloads/jobs/add-container-image-job.png
deleted file mode 100644
index 8fe1ce6a5..000000000
Binary files a/static/images/docs/project-user-guide/application-workloads/jobs/add-container-image-job.png and /dev/null differ
diff --git a/static/images/docs/project-user-guide/application-workloads/jobs/basic-info.png b/static/images/docs/project-user-guide/application-workloads/jobs/basic-info.png
new file mode 100644
index 000000000..6c7ce8d32
Binary files /dev/null and b/static/images/docs/project-user-guide/application-workloads/jobs/basic-info.png differ
diff --git a/static/images/docs/project-user-guide/application-workloads/jobs/click-create.png b/static/images/docs/project-user-guide/application-workloads/jobs/click-create.png
new file mode 100644
index 000000000..b084e009c
Binary files /dev/null and b/static/images/docs/project-user-guide/application-workloads/jobs/click-create.png differ
diff --git a/static/images/docs/project-user-guide/application-workloads/jobs/container-log-check.jpg b/static/images/docs/project-user-guide/application-workloads/jobs/container-log-check.jpg
deleted file mode 100644
index f982ca829..000000000
Binary files a/static/images/docs/project-user-guide/application-workloads/jobs/container-log-check.jpg and /dev/null differ
diff --git a/static/images/docs/project-user-guide/application-workloads/jobs/container-log.jpg b/static/images/docs/project-user-guide/application-workloads/jobs/container-log.jpg
deleted file mode 100644
index 8aeb311ab..000000000
Binary files a/static/images/docs/project-user-guide/application-workloads/jobs/container-log.jpg and /dev/null differ
diff --git a/static/images/docs/project-user-guide/application-workloads/jobs/create-job.jpg b/static/images/docs/project-user-guide/application-workloads/jobs/create-job.jpg
deleted file mode 100644
index 2860056a6..000000000
Binary files a/static/images/docs/project-user-guide/application-workloads/jobs/create-job.jpg and /dev/null differ
diff --git a/static/images/docs/project-user-guide/application-workloads/jobs/down-arrow.png b/static/images/docs/project-user-guide/application-workloads/jobs/down-arrow.png
new file mode 100644
index 000000000..02e433f1b
Binary files /dev/null and b/static/images/docs/project-user-guide/application-workloads/jobs/down-arrow.png differ
diff --git a/static/images/docs/project-user-guide/application-workloads/jobs/env-variable.png b/static/images/docs/project-user-guide/application-workloads/jobs/env-variable.png
deleted file mode 100644
index 86119bc43..000000000
Binary files a/static/images/docs/project-user-guide/application-workloads/jobs/env-variable.png and /dev/null differ
diff --git a/static/images/docs/project-user-guide/application-workloads/jobs/env-variables.png b/static/images/docs/project-user-guide/application-workloads/jobs/env-variables.png
new file mode 100644
index 000000000..d8aff5844
Binary files /dev/null and b/static/images/docs/project-user-guide/application-workloads/jobs/env-variables.png differ
diff --git a/static/images/docs/project-user-guide/application-workloads/jobs/events.png b/static/images/docs/project-user-guide/application-workloads/jobs/events.png
index e21a40ed7..6f1263a8c 100644
Binary files a/static/images/docs/project-user-guide/application-workloads/jobs/events.png and b/static/images/docs/project-user-guide/application-workloads/jobs/events.png differ
diff --git a/static/images/docs/project-user-guide/application-workloads/jobs/exe-records.png b/static/images/docs/project-user-guide/application-workloads/jobs/exe-records.png
new file mode 100644
index 000000000..8e8fae871
Binary files /dev/null and b/static/images/docs/project-user-guide/application-workloads/jobs/exe-records.png differ
diff --git a/static/images/docs/project-user-guide/application-workloads/jobs/execution-record.jpg b/static/images/docs/project-user-guide/application-workloads/jobs/execution-record.jpg
deleted file mode 100644
index cb34848ca..000000000
Binary files a/static/images/docs/project-user-guide/application-workloads/jobs/execution-record.jpg and /dev/null differ
diff --git a/static/images/docs/project-user-guide/application-workloads/jobs/execution-records.png b/static/images/docs/project-user-guide/application-workloads/jobs/execution-records.png
index 853c635fe..9606e30af 100644
Binary files a/static/images/docs/project-user-guide/application-workloads/jobs/execution-records.png and b/static/images/docs/project-user-guide/application-workloads/jobs/execution-records.png differ
diff --git a/static/images/docs/project-user-guide/application-workloads/jobs/job-container-settings.png b/static/images/docs/project-user-guide/application-workloads/jobs/job-container-settings.png
deleted file mode 100644
index 9c91e2321..000000000
Binary files a/static/images/docs/project-user-guide/application-workloads/jobs/job-container-settings.png and /dev/null differ
diff --git a/static/images/docs/project-user-guide/application-workloads/jobs/job-create-basic-info.png b/static/images/docs/project-user-guide/application-workloads/jobs/job-create-basic-info.png
deleted file mode 100644
index ba2dd14fb..000000000
Binary files a/static/images/docs/project-user-guide/application-workloads/jobs/job-create-basic-info.png and /dev/null differ
diff --git a/static/images/docs/project-user-guide/application-workloads/jobs/job-create-job-settings.png b/static/images/docs/project-user-guide/application-workloads/jobs/job-create-job-settings.png
deleted file mode 100644
index 38a941a55..000000000
Binary files a/static/images/docs/project-user-guide/application-workloads/jobs/job-create-job-settings.png and /dev/null differ
diff --git a/static/images/docs/project-user-guide/application-workloads/jobs/job-in-list.png b/static/images/docs/project-user-guide/application-workloads/jobs/job-in-list.png
new file mode 100644
index 000000000..f30c99161
Binary files /dev/null and b/static/images/docs/project-user-guide/application-workloads/jobs/job-in-list.png differ
diff --git a/static/images/docs/project-user-guide/application-workloads/jobs/job-list-new.png b/static/images/docs/project-user-guide/application-workloads/jobs/job-list-new.png
deleted file mode 100644
index b1a95300b..000000000
Binary files a/static/images/docs/project-user-guide/application-workloads/jobs/job-list-new.png and /dev/null differ
diff --git a/static/images/docs/project-user-guide/application-workloads/jobs/job-operation.jpg b/static/images/docs/project-user-guide/application-workloads/jobs/job-operation.jpg
deleted file mode 100644
index 15ef96bbf..000000000
Binary files a/static/images/docs/project-user-guide/application-workloads/jobs/job-operation.jpg and /dev/null differ
diff --git a/static/images/docs/project-user-guide/application-workloads/jobs/job-settings.png b/static/images/docs/project-user-guide/application-workloads/jobs/job-settings.png
new file mode 100644
index 000000000..ae3d1fd58
Binary files /dev/null and b/static/images/docs/project-user-guide/application-workloads/jobs/job-settings.png differ
diff --git a/static/images/docs/project-user-guide/application-workloads/jobs/log.png b/static/images/docs/project-user-guide/application-workloads/jobs/log.png
new file mode 100644
index 000000000..31bb063ce
Binary files /dev/null and b/static/images/docs/project-user-guide/application-workloads/jobs/log.png differ
diff --git a/static/images/docs/project-user-guide/application-workloads/jobs/metadata.png b/static/images/docs/project-user-guide/application-workloads/jobs/metadata.png
index 327de39f7..3c1d70b7a 100644
Binary files a/static/images/docs/project-user-guide/application-workloads/jobs/metadata.png and b/static/images/docs/project-user-guide/application-workloads/jobs/metadata.png differ
diff --git a/static/images/docs/project-user-guide/application-workloads/jobs/modify-job.png b/static/images/docs/project-user-guide/application-workloads/jobs/modify-job.png
new file mode 100644
index 000000000..8adc38a57
Binary files /dev/null and b/static/images/docs/project-user-guide/application-workloads/jobs/modify-job.png differ
diff --git a/static/images/docs/project-user-guide/application-workloads/jobs/res-status.png b/static/images/docs/project-user-guide/application-workloads/jobs/res-status.png
new file mode 100644
index 000000000..644c92b68
Binary files /dev/null and b/static/images/docs/project-user-guide/application-workloads/jobs/res-status.png differ
diff --git a/static/images/docs/project-user-guide/application-workloads/jobs/resource-status.png b/static/images/docs/project-user-guide/application-workloads/jobs/resource-status.png
index 8792dae1d..1bedfe0c6 100644
Binary files a/static/images/docs/project-user-guide/application-workloads/jobs/resource-status.png and b/static/images/docs/project-user-guide/application-workloads/jobs/resource-status.png differ
diff --git a/static/images/docs/project-user-guide/application-workloads/jobs/restart-policy.png b/static/images/docs/project-user-guide/application-workloads/jobs/restart-policy.png
new file mode 100644
index 000000000..4fc273d6f
Binary files /dev/null and b/static/images/docs/project-user-guide/application-workloads/jobs/restart-policy.png differ
diff --git a/static/images/docs/project-user-guide/application-workloads/jobs/set-image.png b/static/images/docs/project-user-guide/application-workloads/jobs/set-image.png
new file mode 100644
index 000000000..cf08cd642
Binary files /dev/null and b/static/images/docs/project-user-guide/application-workloads/jobs/set-image.png differ
diff --git a/static/images/docs/project-user-guide/application-workloads/jobs/start-command-job.jpg b/static/images/docs/project-user-guide/application-workloads/jobs/start-command-job.jpg
deleted file mode 100644
index 36a336cbd..000000000
Binary files a/static/images/docs/project-user-guide/application-workloads/jobs/start-command-job.jpg and /dev/null differ
diff --git a/static/images/docs/project-user-guide/application-workloads/jobs/start-command.png b/static/images/docs/project-user-guide/application-workloads/jobs/start-command.png
new file mode 100644
index 000000000..80c7b8b3f
Binary files /dev/null and b/static/images/docs/project-user-guide/application-workloads/jobs/start-command.png differ
diff --git a/static/images/docs/zh-cn/project-user-guide/application-workloads/jobs/down-arrow.png b/static/images/docs/zh-cn/project-user-guide/application-workloads/jobs/down-arrow.png
new file mode 100644
index 000000000..02e433f1b
Binary files /dev/null and b/static/images/docs/zh-cn/project-user-guide/application-workloads/jobs/down-arrow.png differ