Skip to content

Commit

Permalink
Merge pull request kubernetes#27822 from mengjiao-liu/sync-scheduling
Browse files Browse the repository at this point in the history
[zh] Sync Reference scheduling files
  • Loading branch information
k8s-ci-robot authored May 10, 2021
2 parents 7a2e319 + 578e65e commit 2b25d78
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 17 deletions.
6 changes: 5 additions & 1 deletion content/zh/docs/reference/kubernetes-api/_index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
---
title: API 参考
title: Kubernetes API
weight: 30
---

<!-- overview -->

{{< glossary_definition term_id="kubernetes-api" length="all" >}}
32 changes: 19 additions & 13 deletions content/zh/docs/reference/scheduling/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ by implementing one or more of these extension points.

<!--
You can specify scheduling profiles by running `kube-scheduler --config <filename>`,
using the component config APIs
([`v1beta1`](https://pkg.go.dev/k8s.io/kube-scheduler@v0.19.0/config/v1beta1?tab=doc#KubeSchedulerConfiguration)).
using the
[KubeSchedulerConfiguration (v1beta1)](/docs/reference/config-api/kube-scheduler-config.v1beta1/)
struct.
-->
你可以通过运行 `kube-scheduler --config <filename>` 来设置调度模板,
配置文件使用组件配置的 API ([`v1alpha1`](https://pkg.go.dev/k8s.io/kube-scheduler@v0.19.0/config/v1beta1?tab=doc#KubeSchedulerConfiguration))
使用 [KubeSchedulerConfiguration (v1beta1)](/docs/reference/config-api/kube-scheduler-config.v1beta1/) 结构体

<!-- A minimal configuration looks as follows: -->
最简单的配置如下:
Expand Down Expand Up @@ -285,11 +286,20 @@ extension points:
<!--
- `VolumeBinding`: Checks if the node has or if it can bind the requested
{{< glossary_tooltip text="volumes" term_id="volume" >}}.
Extension points: `PreFilter`, `Filter`, `Reserve`, `PreBind`.
Extension points: `PreFilter`, `Filter`, `Reserve`, `PreBind`, `Score`.
{{< note >}}
`Score` extension point is enabled when `VolumeCapacityPriority` feature is
enabled. It prioritizes the smallest PVs that can fit the requested volume
size.
{{< /note >}}
-->
- `VolumeBinding`:检查节点是否有请求的卷,或是否可以绑定请求的卷。

实现的扩展点: `PreFilter`,`Filter`,`Reserve`,`PreBind`。
实现的扩展点: `PreFilter`、`Filter`、`Reserve`、`PreBind` 和 `Score`。
{{< note >}}
当 `VolumeCapacityPriority` 特性被启用时,`Score` 扩展点也被启用。
它优先考虑可以满足所需卷大小的最小 PV。
{{< /note >}}

<!--
- `VolumeRestrictions`: Checks that volumes mounted in the node satisfy
restrictions that are specific to the volume provider.
Expand Down Expand Up @@ -389,13 +399,6 @@ that are not enabled by default:

实现的扩展点:`Score`。
<!--
- `NodeResourceLimits`: Favors nodes that satisfy the Pod resource limits.
Extension points: `PreScore`, `Score`.
-->
- `NodeResourceLimits`:选择满足 Pod 资源限制的节点。

实现的扩展点:`PreScore`,`Score`。
<!--
- `CinderVolume`: Checks that OpenStack Cinder volume limits can be satisfied
for the node.
Extension points: `Filter`.
Expand Down Expand Up @@ -507,6 +510,9 @@ only has one pending pods queue.
<!--
* Read the [kube-scheduler reference](https://kubernetes.io/docs/reference/command-line-tools-reference/kube-scheduler/)
* Learn about [scheduling](/docs/concepts/scheduling-eviction/kube-scheduler/)
* Read the [kube-scheduler configuration (v1beta1)](/docs/reference/config-api/kube-scheduler-config.v1beta1/) reference
-->
* 阅读 [kube-scheduler 参考](/zh/docs/reference/command-line-tools-reference/kube-scheduler/)
* 了解[调度](/zh/docs/concepts/scheduling-eviction/kube-scheduler/)
* 阅读 [kube-scheduler 配置 (v1beta1)](/zh/docs/reference/config-api/kube-scheduler-config.v1beta1/) 参考

10 changes: 7 additions & 3 deletions content/zh/docs/reference/scheduling/policies.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ respectively.
You can set a scheduling policy by running
`kube-scheduler --policy-config-file <filename>` or
`kube-scheduler --policy-configmap <ConfigMap>`
and using the [Policy type](https://pkg.go.dev/k8s.io/kube-scheduler@v0.18.0/config/v1?tab=doc#Policy).
and using the [Policy type](/zh/docs/reference/config-api/kube-scheduler-policy-config.v1/).
-->
你可以通过执行 `kube-scheduler --policy-config-file <filename>`
`kube-scheduler --policy-configmap <ConfigMap>`
设置并使用[调度策略](https://pkg.go.dev/k8s.io/kube-scheduler@v0.18.0/config/v1?tab=doc#Policy)
设置并使用[调度策略](/zh/docs/reference/config-api/kube-scheduler-policy-config.v1/)


<!-- body -->
Expand Down Expand Up @@ -228,6 +228,10 @@ and using the [Policy type](https://pkg.go.dev/k8s.io/kube-scheduler@v0.18.0/con
<!--
* Learn about [scheduling](/docs/concepts/scheduling-eviction/kube-scheduler/)
* Learn about [kube-scheduler Configuration](/docs/reference/scheduling/config/)
* Read the [kube-scheduler configuration reference (v1beta1)](/docs/reference/config-api/kube-scheduler-config.v1beta1)
* Read the [kube-scheduler Policy reference (v1)](/docs/reference/config-api/kube-scheduler-policy-config.v1/)
-->
* 了解[调度](/zh/docs/concepts/scheduling-eviction/kube-scheduler/)
* 了解 [kube-scheduler 配置](/zh/docs/reference/scheduling/config/)
* 了解 [kube-scheduler 配置](/zh/docs/reference/scheduling/config/)
* 阅读 [kube-scheduler 配置参考 (v1beta1)](/zh/docs/reference/config-api/kube-scheduler-config.v1beta1)
* 阅读 [kube-scheduler 策略参考 (v1)](/zh/docs/reference/config-api/kube-scheduler-policy-config.v1/)

0 comments on commit 2b25d78

Please sign in to comment.