You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@yunikorn.apache.org by ww...@apache.org on 2022/11/17 19:30:30 UTC
[yunikorn-site] branch master updated: [YUNIKORN-1408] Adding Chinese translation of workload/Overview (#211)
This is an automated email from the ASF dual-hosted git repository.
wwei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-site.git
The following commit(s) were added to refs/heads/master by this push:
new d9a68657d [YUNIKORN-1408] Adding Chinese translation of workload/Overview (#211)
d9a68657d is described below
commit d9a68657d6142f119facb472efcef2e670c7221a
Author: YuTeng Chen <45...@users.noreply.github.com>
AuthorDate: Fri Nov 18 03:30:24 2022 +0800
[YUNIKORN-1408] Adding Chinese translation of workload/Overview (#211)
---
.../user_guide/workloads/workload_overview.md | 56 ++++++++++++++++++++++
1 file changed, 56 insertions(+)
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/current/user_guide/workloads/workload_overview.md b/i18n/zh-cn/docusaurus-plugin-content-docs/current/user_guide/workloads/workload_overview.md
new file mode 100644
index 000000000..c7b46a4c3
--- /dev/null
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/current/user_guide/workloads/workload_overview.md
@@ -0,0 +1,56 @@
+---
+id: workload_overview
+title: 概述
+---
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+YuniKorn调度器支持任何的Kubernetes工作负载。所需要的只是确保将Pod规范的
+`schedulerName`字段设置为`yunikorn`并将`applicationId`标签设置为每个应用程序的唯一值:
+
+```yaml
+apiVersion: v1
+kind: Pod
+metadata:
+ labels:
+ app: sleep
+ applicationId: "application-sleep-0001"
+ name: sleep-app-1
+spec:
+ schedulerName: yunikorn
+ containers:
+ - name: sleep-30s
+ image: "alpine:latest"
+ command: ["sleep", "30"]
+ resources:
+ requests:
+ cpu: "100m"
+ memory: "100M"
+```
+
+此外,如果存在YuniKorn准入控制器,则可以省略“schedulerName”字段,因为它将在新创建的pod上自动设置。
+
+## 进阶例子
+
+可以在此处找到更进阶的例子:
+
+* [运行Spark作业](run_spark)
+* [运行Flink作业](run_flink)
+* [运行TensorFlow作业](run_tf)