Merge pull request #25691 from guzj11/patch-50

Update configure-pdb.md
This commit is contained in:
Kubernetes Prow Robot
2020-12-18 07:46:25 -08:00
committed by GitHub
@@ -80,6 +80,13 @@ selector goes into the PDBs `.spec.selector`.
在这种情况下,在控制器的 `.spec.selector` 字段中做记录,并在 PDB 的 在这种情况下,在控制器的 `.spec.selector` 字段中做记录,并在 PDB 的
`.spec.selector` 字段中加入同样的选择算符。 `.spec.selector` 字段中加入同样的选择算符。
<!--
From version 1.15 PDBs support custom controllers where the [scale subresource](/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#scale-subresource) is enabled.
-->
从 1.15 版本开始,PDB 支持启用
[scale 子资源](/zh/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#scale-subresource)
的自定义控制器。
<!-- <!--
You can also use PDBs with pods which are not controlled by one of the above You can also use PDBs with pods which are not controlled by one of the above
controllers, or arbitrary groups of pods, but there are some restrictions, controllers, or arbitrary groups of pods, but there are some restrictions,
@@ -421,4 +428,3 @@ to create PDBs whose selectors overlap.
你可以令选择算符选择一个内置控制器所控制 Pod 的子集或父集。 你可以令选择算符选择一个内置控制器所控制 Pod 的子集或父集。
然而,当名字空间下存在多个 PDB 时,用户必须小心,保证 PDB 的选择算符之间不重叠。 然而,当名字空间下存在多个 PDB 时,用户必须小心,保证 PDB 的选择算符之间不重叠。